Added C++ style extern in x509write header file

This commit is contained in:
Paul Bakker 2013-09-11 11:47:26 +02:00
parent a565aceea1
commit 34b225f0ee

View file

@ -29,6 +29,10 @@
#include "rsa.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _x509_req_name
{
char oid[128];
@ -43,4 +47,8 @@ int x509_write_key_der( unsigned char *buf, size_t size, rsa_context *rsa );
int x509_write_cert_req( unsigned char *buf, size_t size, rsa_context *rsa,
x509_req_name *req_name, int hash_id );
#ifdef __cplusplus
}
#endif
#endif /* POLARSSL_X509_WRITE_H */