summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_vpm.c
diff options
context:
space:
mode:
authortb <>2022-06-27 14:00:09 +0000
committertb <>2022-06-27 14:00:09 +0000
commit6ed54976ab988ec7cfdbaf1ac00396b0eea716ba (patch)
tree6652b704559804a63e8900495dcb6dbcab41a07c /src/lib/libcrypto/x509/x509_vpm.c
parent1dfc6d4bc0a9c452ed36f0b04d5dcf53b77e6f1f (diff)
downloadopenbsd-6ed54976ab988ec7cfdbaf1ac00396b0eea716ba.tar.gz
openbsd-6ed54976ab988ec7cfdbaf1ac00396b0eea716ba.tar.bz2
openbsd-6ed54976ab988ec7cfdbaf1ac00396b0eea716ba.zip
Prepare to provide X509_VERIFY_PARAM_set_auth_level()
For some unknown reason this needed a different name than security_level, both internally and in the public API. Obviously it is exactly the same garbage. ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vpm.c')
-rw-r--r--src/lib/libcrypto/x509/x509_vpm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_vpm.c b/src/lib/libcrypto/x509/x509_vpm.c
index 13171e40f5..d4ec2c597f 100644
--- a/src/lib/libcrypto/x509/x509_vpm.c
+++ b/src/lib/libcrypto/x509/x509_vpm.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_vpm.c,v 1.28 2021/11/01 20:53:08 tb Exp $ */ 1/* $OpenBSD: x509_vpm.c,v 1.29 2022/06/27 14:00:09 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2004. 3 * project 2004.
4 */ 4 */
@@ -454,6 +454,12 @@ X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth)
454} 454}
455 455
456void 456void
457X509_VERIFY_PARAM_set_auth_level(X509_VERIFY_PARAM *param, int auth_level)
458{
459 param->security_level = auth_level;
460}
461
462void
457X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t) 463X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t)
458{ 464{
459 param->check_time = t; 465 param->check_time = t;