diff options
author | tb <> | 2024-06-18 05:34:09 +0000 |
---|---|---|
committer | tb <> | 2024-06-18 05:34:09 +0000 |
commit | 70e06affe95d9ac3db63164704320cebfad67e8b (patch) | |
tree | 9ecfa606ed376d34f089acdd292e5ce21c32317f /src | |
parent | cb1399be72dc293bd666a7a28faac9d470eefa82 (diff) | |
download | openbsd-70e06affe95d9ac3db63164704320cebfad67e8b.tar.gz openbsd-70e06affe95d9ac3db63164704320cebfad67e8b.tar.bz2 openbsd-70e06affe95d9ac3db63164704320cebfad67e8b.zip |
do_ext_i2d(): populate ext_oct with ASN1_STRING_set0()
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/x509/x509_conf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_conf.c b/src/lib/libcrypto/x509/x509_conf.c index 6d611204a5..ed63f1c4d0 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.9 2024/06/18 05:32:38 tb Exp $ */ | 1 | /* $OpenBSD: x509_conf.c,v 1.10 2024/06/18 05:34: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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -212,8 +212,7 @@ do_ext_i2d(const X509V3_EXT_METHOD *method, int ext_nid, int crit, | |||
212 | } | 212 | } |
213 | if ((ext_oct = ASN1_OCTET_STRING_new()) == NULL) | 213 | if ((ext_oct = ASN1_OCTET_STRING_new()) == NULL) |
214 | goto merr; | 214 | goto merr; |
215 | ext_oct->data = ext_der; | 215 | ASN1_STRING_set0(ext_oct, ext_der, ext_len); |
216 | ext_oct->length = ext_len; | ||
217 | ext_der = NULL; | 216 | ext_der = NULL; |
218 | ext_len = 0; | 217 | ext_len = 0; |
219 | 218 | ||