diff options
author | Ben Laurie <ben@openssl.org> | 1999-04-12 19:23:57 +0200 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-04-12 19:23:57 +0200 |
commit | f73e07cf420ddad22b6148d8cbe28daf84ccae2d (patch) | |
tree | 3396fc9a31ba5a227211ea9e94600ddc4b4a58f2 /crypto/x509/x509.h | |
parent | gcc claims this is a shadow, though I can't find what it is shadowing... (diff) | |
download | openssl-f73e07cf420ddad22b6148d8cbe28daf84ccae2d.tar.xz openssl-f73e07cf420ddad22b6148d8cbe28daf84ccae2d.zip |
Add type-safe STACKs and SETs.
Diffstat (limited to 'crypto/x509/x509.h')
-rw-r--r-- | crypto/x509/x509.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/crypto/x509/x509.h b/crypto/x509/x509.h index 2f1ca6229b..0cb6c04f47 100644 --- a/crypto/x509/x509.h +++ b/crypto/x509/x509.h @@ -66,6 +66,7 @@ extern "C" { #include "stack.h" #include "asn1.h" +#include "safestack.h" #ifndef NO_RSA #include "rsa.h" @@ -155,6 +156,8 @@ typedef struct X509_name_st unsigned long hash; /* Keep the hash around for lookups */ } X509_NAME; +DECLARE_STACK_OF(X509_NAME) + #define X509_EX_V_NETSCAPE_HACK 0x8000 #define X509_EX_V_INIT 0x0001 typedef struct X509_extension_st @@ -228,6 +231,9 @@ typedef struct x509_st char *name; } X509; +DECLARE_STACK_OF(X509) +DECLARE_ASN1_SET_OF(X509) + typedef struct X509_revoked_st { ASN1_INTEGER *serialNumber; @@ -870,9 +876,9 @@ ASN1_STRING * X509v3_unpack_string(ASN1_STRING **ex,int type, int X509_verify_cert(X509_STORE_CTX *ctx); /* lookup a cert from a X509 STACK */ -X509 *X509_find_by_issuer_and_serial(STACK *sk,X509_NAME *name, - ASN1_INTEGER *serial); -X509 *X509_find_by_subject(STACK *sk,X509_NAME *name); +X509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk,X509_NAME *name, + ASN1_INTEGER *serial); +X509 *X509_find_by_subject(STACK_OF(X509) *sk,X509_NAME *name); int i2d_PBEPARAM(PBEPARAM *a, unsigned char **pp); PBEPARAM *PBEPARAM_new(void); |