PolarSSL v1.2.10
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 */
int x509_write_pubkey_der(unsigned char *buf, size_t size, rsa_context *rsa)
struct _x509_req_name x509_req_name
char name[128]
Definition: x509write.h:39
struct _x509_req_name * next
Definition: x509write.h:41
RSA context structure.
Definition: rsa.h:135
int x509_write_cert_req(unsigned char *buf, size_t size, rsa_context *rsa, x509_req_name *req_name, int hash_id)
The RSA public-key cryptosystem.
int x509_write_key_der(unsigned char *buf, size_t size, rsa_context *rsa)
char oid[128]
Definition: x509write.h:38