aboutsummaryrefslogtreecommitdiff
path: root/decrepit
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2018-09-23 17:37:30 -0500
committerCQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>2018-10-01 23:26:40 +0000
commite17e14dfe1cf329d5c6c74a3114fe6d899d05b2f (patch)
tree1e5fdd4127eb07ff7edc568e70dd6a0ed5f12ba4 /decrepit
parenta943613e4060fd19258e4ae82491af8f98d5e2a1 (diff)
downloadboringssl-e17e14dfe1cf329d5c6c74a3114fe6d899d05b2f.zip
boringssl-e17e14dfe1cf329d5c6c74a3114fe6d899d05b2f.tar.gz
boringssl-e17e14dfe1cf329d5c6c74a3114fe6d899d05b2f.tar.bz2
Remove LHASH_OF mention in X509V3_EXT_conf_nid.
Everyone calls this with NULL anyway. People never actually use lh_CONF_VALUE_* functions (or any other lh_* functions for that matter). Also remove unused X509V3_EXT_CRL_add_conf prototype. This removes one of the last mentions of LHASH_OF in public headers. Update-Note: X509V3_EXT_conf_nid calls that pass a non-NULL first parameter will fail to compile. Change-Id: Ia6302ef7b494efeb9b63ab75a18bc340909dcba3 Reviewed-on: https://boringssl-review.googlesource.com/32117 Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'decrepit')
-rw-r--r--decrepit/x509/x509_decrepit.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/decrepit/x509/x509_decrepit.c b/decrepit/x509/x509_decrepit.c
index 5714b40..28015f3 100644
--- a/decrepit/x509/x509_decrepit.c
+++ b/decrepit/x509/x509_decrepit.c
@@ -16,27 +16,7 @@
#include <openssl/x509v3.h>
-X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf,
- X509V3_CTX *ctx, int ext_nid, char *value) {
- CONF *nconf = NULL;
- LHASH_OF(CONF_VALUE) *orig_data = NULL;
-
- if (conf != NULL) {
- nconf = NCONF_new(NULL /* no method */);
- if (nconf == NULL) {
- return NULL;
- }
-
- orig_data = nconf->data;
- nconf->data = conf;
- }
-
- X509_EXTENSION *ret = X509V3_EXT_nconf_nid(nconf, ctx, ext_nid, value);
-
- if (nconf != NULL) {
- nconf->data = orig_data;
- NCONF_free(nconf);
- }
-
- return ret;
+X509_EXTENSION *X509V3_EXT_conf_nid(X509_MUST_BE_NULL *conf, X509V3_CTX *ctx,
+ int ext_nid, char *value) {
+ return X509V3_EXT_nconf_nid(NULL, ctx, ext_nid, value);
}