diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-10-11 01:30:04 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-10-11 01:30:04 +0000 |
commit | 56a3fec1b12d9a95f9b79ce7918fe619488caa9a (patch) | |
tree | 3fb749ffd956c6f2e25b9eb905dcfc017be45499 /crypto/x509 | |
parent | 4654ef985b58e2cf7c153057ffc6fda8ab186543 (diff) | |
download | openssl-56a3fec1b12d9a95f9b79ce7918fe619488caa9a.tar.gz |
Add EX_DATA support to X509.
Fix a bug in the X509_get_d2i() functions which didn't check if crit was NULL.
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/x509.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/x509/x509.h b/crypto/x509/x509.h index 17319fee11..36772b57ea 100644 --- a/crypto/x509/x509.h +++ b/crypto/x509/x509.h @@ -238,6 +238,7 @@ typedef struct x509_st int valid; int references; char *name; + CRYPTO_EX_DATA ex_data; } X509; DECLARE_STACK_OF(X509) @@ -724,6 +725,10 @@ X509 * X509_new(void); void X509_free(X509 *a); int i2d_X509(X509 *a,unsigned char **pp); X509 * d2i_X509(X509 **a,unsigned char **pp,long length); +int X509_get_ex_new_index(long argl, char *argp, int (*new_func)(), + int (*dup_func)(), void (*free_func)()); +int X509_set_ex_data(X509 *r, int idx, char *arg); +char *X509_get_ex_data(X509 *r, int idx); X509_REVOKED * X509_REVOKED_new(void); void X509_REVOKED_free(X509_REVOKED *a); |