diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-11-26 01:27:07 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-11-26 01:27:07 +0100 |
commit | d4cec6a13dfb2c1d1ddf66dff499aaf21bbbf002 (patch) | |
tree | 4ee543a5413ad1df09e71f97cb69dfe2b48c12da /crypto/stack | |
parent | Initial chain verify code: not tested probably not working (diff) | |
download | openssl-d4cec6a13dfb2c1d1ddf66dff499aaf21bbbf002.tar.xz openssl-d4cec6a13dfb2c1d1ddf66dff499aaf21bbbf002.zip |
New options to the -verify program which can be used for chain verification.
Extend the X509_PURPOSE structure to include shortnames for purposed and default
trust ids.
Still need some extendable trust checking code and integration with the SSL and
S/MIME code.
Diffstat (limited to 'crypto/stack')
-rw-r--r-- | crypto/stack/stack.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/stack/stack.h b/crypto/stack/stack.h index 0f825cc0c4..a615d9b4c9 100644 --- a/crypto/stack/stack.h +++ b/crypto/stack/stack.h @@ -76,8 +76,8 @@ typedef struct stack_st #define sk_new_null() sk_new(NULL) -#define M_sk_num(sk) ((sk)->num) -#define M_sk_value(sk,n) ((sk)->data[n]) +#define M_sk_num(sk) ((sk) ? (sk)->num:-1) +#define M_sk_value(sk,n) ((sk) ? (sk)->data[n] : NULL) int sk_num(STACK *); char *sk_value(STACK *, int); |