diff options
author | tb <> | 2024-10-25 00:27:09 +0000 |
---|---|---|
committer | tb <> | 2024-10-25 00:27:09 +0000 |
commit | 9d5aa048136fd0298590844b17f072f3be6abf1d (patch) | |
tree | 75454e872d8d8b93332ba1fdad67d0596bd0716b /src | |
parent | 83e184bcfa6b0f7c9edf29ce784e452d3fa88fb3 (diff) | |
download | openbsd-9d5aa048136fd0298590844b17f072f3be6abf1d.tar.gz openbsd-9d5aa048136fd0298590844b17f072f3be6abf1d.tar.bz2 openbsd-9d5aa048136fd0298590844b17f072f3be6abf1d.zip |
ec_asn1: fix some NULL misspellings
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/ec/ec_asn1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c index 60225f48f9..f19f97975b 100644 --- a/src/lib/libcrypto/ec/ec_asn1.c +++ b/src/lib/libcrypto/ec/ec_asn1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_asn1.c,v 1.77 2024/10/22 12:06:08 tb Exp $ */ | 1 | /* $OpenBSD: ec_asn1.c,v 1.78 2024/10/25 00:27:09 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -1318,17 +1318,17 @@ o2i_ECPublicKey(EC_KEY **a, const unsigned char **in, long len) | |||
1318 | if (a == NULL || (*a) == NULL || (*a)->group == NULL) { | 1318 | if (a == NULL || (*a) == NULL || (*a)->group == NULL) { |
1319 | /* An EC_GROUP structure is necessary to set the public key. */ | 1319 | /* An EC_GROUP structure is necessary to set the public key. */ |
1320 | ECerror(ERR_R_PASSED_NULL_PARAMETER); | 1320 | ECerror(ERR_R_PASSED_NULL_PARAMETER); |
1321 | return 0; | 1321 | return NULL; |
1322 | } | 1322 | } |
1323 | ret = *a; | 1323 | ret = *a; |
1324 | if (ret->pub_key == NULL && | 1324 | if (ret->pub_key == NULL && |
1325 | (ret->pub_key = EC_POINT_new(ret->group)) == NULL) { | 1325 | (ret->pub_key = EC_POINT_new(ret->group)) == NULL) { |
1326 | ECerror(ERR_R_MALLOC_FAILURE); | 1326 | ECerror(ERR_R_MALLOC_FAILURE); |
1327 | return 0; | 1327 | return NULL; |
1328 | } | 1328 | } |
1329 | if (!EC_POINT_oct2point(ret->group, ret->pub_key, *in, len, NULL)) { | 1329 | if (!EC_POINT_oct2point(ret->group, ret->pub_key, *in, len, NULL)) { |
1330 | ECerror(ERR_R_EC_LIB); | 1330 | ECerror(ERR_R_EC_LIB); |
1331 | return 0; | 1331 | return NULL; |
1332 | } | 1332 | } |
1333 | /* save the point conversion form */ | 1333 | /* save the point conversion form */ |
1334 | ret->conv_form = (point_conversion_form_t) (*in[0] & ~0x01); | 1334 | ret->conv_form = (point_conversion_form_t) (*in[0] & ~0x01); |