summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/hidden/openssl/x509v3.h8
-rw-r--r--src/lib/libcrypto/x509/x509_conf.c24
2 files changed, 11 insertions, 21 deletions
diff --git a/src/lib/libcrypto/hidden/openssl/x509v3.h b/src/lib/libcrypto/hidden/openssl/x509v3.h
index 1799d4811d..c2293d8ea0 100644
--- a/src/lib/libcrypto/hidden/openssl/x509v3.h
+++ b/src/lib/libcrypto/hidden/openssl/x509v3.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509v3.h,v 1.9 2024/07/08 17:01:54 beck Exp $ */ 1/* $OpenBSD: x509v3.h,v 1.10 2024/08/28 08:33:06 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2022 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -139,9 +139,9 @@ LCRYPTO_USED(X509V3_EXT_REQ_add_nconf);
139LCRYPTO_USED(X509V3_EXT_CRL_add_nconf); 139LCRYPTO_USED(X509V3_EXT_CRL_add_nconf);
140LCRYPTO_USED(X509V3_EXT_conf_nid); 140LCRYPTO_USED(X509V3_EXT_conf_nid);
141LCRYPTO_USED(X509V3_EXT_conf); 141LCRYPTO_USED(X509V3_EXT_conf);
142LCRYPTO_USED(X509V3_EXT_add_conf); 142LCRYPTO_UNUSED(X509V3_EXT_add_conf);
143LCRYPTO_USED(X509V3_EXT_REQ_add_conf); 143LCRYPTO_UNUSED(X509V3_EXT_REQ_add_conf);
144LCRYPTO_USED(X509V3_EXT_CRL_add_conf); 144LCRYPTO_UNUSED(X509V3_EXT_CRL_add_conf);
145LCRYPTO_USED(X509V3_add_value_bool_nf); 145LCRYPTO_USED(X509V3_add_value_bool_nf);
146LCRYPTO_USED(X509V3_get_value_bool); 146LCRYPTO_USED(X509V3_get_value_bool);
147LCRYPTO_USED(X509V3_get_value_int); 147LCRYPTO_USED(X509V3_get_value_int);
diff --git a/src/lib/libcrypto/x509/x509_conf.c b/src/lib/libcrypto/x509/x509_conf.c
index b506d3ddfb..b6e5cd147a 100644
--- a/src/lib/libcrypto/x509/x509_conf.c
+++ b/src/lib/libcrypto/x509/x509_conf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_conf.c,v 1.18 2024/06/24 06:32:04 tb Exp $ */ 1/* $OpenBSD: x509_conf.c,v 1.19 2024/08/28 08:33:06 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 1999. 3 * project 1999.
4 */ 4 */
@@ -562,35 +562,25 @@ int
562X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, 562X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,
563 const char *section, X509 *cert) 563 const char *section, X509 *cert)
564{ 564{
565 CONF ctmp; 565 X509V3error(ERR_R_DISABLED);
566 566 return 0;
567 CONF_set_nconf(&ctmp, conf);
568 return X509V3_EXT_add_nconf(&ctmp, ctx, section, cert);
569} 567}
570LCRYPTO_ALIAS(X509V3_EXT_add_conf); 568LCRYPTO_ALIAS(X509V3_EXT_add_conf);
571 569
572/* Same as above but for a CRL */
573
574int 570int
575X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, 571X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,
576 const char *section, X509_CRL *crl) 572 const char *section, X509_CRL *crl)
577{ 573{
578 CONF ctmp; 574 X509V3error(ERR_R_DISABLED);
579 575 return 0;
580 CONF_set_nconf(&ctmp, conf);
581 return X509V3_EXT_CRL_add_nconf(&ctmp, ctx, section, crl);
582} 576}
583LCRYPTO_ALIAS(X509V3_EXT_CRL_add_conf); 577LCRYPTO_ALIAS(X509V3_EXT_CRL_add_conf);
584 578
585/* Add extensions to certificate request */
586
587int 579int
588X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, 580X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,
589 const char *section, X509_REQ *req) 581 const char *section, X509_REQ *req)
590{ 582{
591 CONF ctmp; 583 X509V3error(ERR_R_DISABLED);
592 584 return 0;
593 CONF_set_nconf(&ctmp, conf);
594 return X509V3_EXT_REQ_add_nconf(&ctmp, ctx, section, req);
595} 585}
596LCRYPTO_ALIAS(X509V3_EXT_REQ_add_conf); 586LCRYPTO_ALIAS(X509V3_EXT_REQ_add_conf);