diff options
author | David Benjamin <davidben@google.com> | 2022-12-29 00:41:26 -0500 |
---|---|---|
committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-17 17:06:11 +0000 |
commit | 44b3a283174cbfdf3c67ecd9cb515a4a8e029b60 (patch) | |
tree | 60f34d188c7130052c9e321abdf823f55203c56a /decrepit | |
parent | ff23b7cb2c5bec11044d92dca8fa7d3ca0ec5fbc (diff) | |
download | boringssl-44b3a283174cbfdf3c67ecd9cb515a4a8e029b60.zip boringssl-44b3a283174cbfdf3c67ecd9cb515a4a8e029b60.tar.gz boringssl-44b3a283174cbfdf3c67ecd9cb515a4a8e029b60.tar.bz2 |
Further const-correct config-based extension creation.
Constructing extensions from a config file should not modify the config
file or input certificates, so everything here should be const.
While I'm here, fix various missing sk_FOO_push malloc failure checks.
Change-Id: Ic29b21248a9d9243050c771fd0ce1e1d77f7ce7f
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/56027
Reviewed-by: Bob Beck <bbe@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
Diffstat (limited to 'decrepit')
-rw-r--r-- | decrepit/x509/x509_decrepit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/decrepit/x509/x509_decrepit.c b/decrepit/x509/x509_decrepit.c index 3abab06..5af499e 100644 --- a/decrepit/x509/x509_decrepit.c +++ b/decrepit/x509/x509_decrepit.c @@ -19,8 +19,9 @@ #include <openssl/conf.h> -X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, - int ext_nid, const char *value) { +X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf, + const X509V3_CTX *ctx, int ext_nid, + const char *value) { assert(conf == NULL); return X509V3_EXT_nconf_nid(NULL, ctx, ext_nid, value); } |