diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-02-20 01:15:41 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-02-20 01:15:41 +0000 |
commit | c74f1eb9bde5c66be3d6685dcc395f39a53add55 (patch) | |
tree | e06012d073219f7062726d1abcf26fd9c2dd2a09 /crypto/x509v3/v3_utl.c | |
parent | ee5425d97de08d2149426c01b9a60cabca18fa12 (diff) |
Preliminary support for reason code CRL extension.
Diffstat (limited to 'crypto/x509v3/v3_utl.c')
-rw-r--r-- | crypto/x509v3/v3_utl.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c index 2b4d079b0e..dc43fcb7bd 100644 --- a/crypto/x509v3/v3_utl.c +++ b/crypto/x509v3/v3_utl.c @@ -65,10 +65,9 @@ #include <err.h> #include "x509v3.h" -static char * str_dup(char *str); static char *strip_spaces(char *name); -static char *str_dup(str) +char *str_dup(str) char *str; { char *tmp; @@ -133,6 +132,21 @@ STACK **extlist; return 1; } + +char *i2s_ASN1_ENUMERATED(method, a) +X509V3_EXT_METHOD *method; +ASN1_ENUMERATED *a; +{ + BIGNUM *bntmp = NULL; + char *strtmp = NULL; + if(!a) return NULL; + if(!(bntmp = ASN1_ENUMERATED_to_BN(a, NULL)) || + !(strtmp = BN_bn2dec(bntmp)) ) + X509V3err(X509V3_F_I2S_ASN1_ENUMERATED,ERR_R_MALLOC_FAILURE); + BN_free(bntmp); + return strtmp; +} + char *i2s_ASN1_INTEGER(method, a) X509V3_EXT_METHOD *method; ASN1_INTEGER *a; |