diff options
author | beck <> | 2018-04-06 07:08:20 +0000 |
---|---|---|
committer | beck <> | 2018-04-06 07:08:20 +0000 |
commit | cbd1d6a8808038e6f357e956a343f70ecaf110f4 (patch) | |
tree | 3f536dd9c6701ce8c8c9a5fa0d5c883caa5222e2 /src/lib/libcrypto/x509/vpm_int.h | |
parent | a0522cf10ae4b806e95c44e85e22fae53f9228d6 (diff) | |
download | openbsd-cbd1d6a8808038e6f357e956a343f70ecaf110f4.tar.gz openbsd-cbd1d6a8808038e6f357e956a343f70ecaf110f4.tar.bz2 openbsd-cbd1d6a8808038e6f357e956a343f70ecaf110f4.zip |
poison for X509_VERIFY_PARAM's
Tighten up checks for various X509_VERIFY_PARAM functions, and
allow for the verify param to be poisoned (preculding future
successful cert validation) if the setting of host, ip, or email
for certificate validation fails. (since many callers do not
check the return code in the wild and blunder along anyway)
Inspired by some discussions with Adam Langley.
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/x509/vpm_int.h')
-rw-r--r-- | src/lib/libcrypto/x509/vpm_int.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/vpm_int.h b/src/lib/libcrypto/x509/vpm_int.h index 6c8061c847..7fc9fef761 100644 --- a/src/lib/libcrypto/x509/vpm_int.h +++ b/src/lib/libcrypto/x509/vpm_int.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: vpm_int.h,v 1.3 2016/12/21 15:49:29 jsing Exp $ */ | 1 | /* $OpenBSD: vpm_int.h,v 1.4 2018/04/06 07:08:20 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project |
4 | * 2013. | 4 | * 2013. |
@@ -69,6 +69,7 @@ struct X509_VERIFY_PARAM_ID_st { | |||
69 | size_t emaillen; | 69 | size_t emaillen; |
70 | unsigned char *ip; /* If not NULL IP address to match */ | 70 | unsigned char *ip; /* If not NULL IP address to match */ |
71 | size_t iplen; /* Length of IP address */ | 71 | size_t iplen; /* Length of IP address */ |
72 | int poisoned; | ||
72 | }; | 73 | }; |
73 | 74 | ||
74 | __END_HIDDEN_DECLS | 75 | __END_HIDDEN_DECLS |