PolarSSL v1.2.12
x509write.h
Go to the documentation of this file.
1 
27 #ifndef POLARSSL_X509_WRITE_H
28 #define POLARSSL_X509_WRITE_H
29 
30 #include "rsa.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 typedef struct _x509_req_name
37 {
38  char oid[128];
39  char name[128];
40 
42 }
44 
45 int x509_write_pubkey_der( unsigned char *buf, size_t size, rsa_context *rsa );
46 int x509_write_key_der( unsigned char *buf, size_t size, rsa_context *rsa );
47 int x509_write_cert_req( unsigned char *buf, size_t size, rsa_context *rsa,
48  x509_req_name *req_name, int hash_id );
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* POLARSSL_X509_WRITE_H */