diff options
author | tb <> | 2023-04-13 07:44:12 +0000 |
---|---|---|
committer | tb <> | 2023-04-13 07:44:12 +0000 |
commit | 6db884de114b8b0a694e126243dee56a4699f9af (patch) | |
tree | 8896dfea75c9223e391407f856cb9c3da04eb05f /src/lib | |
parent | c344a5d55a22e1291d8bd210896c845201df5cc7 (diff) | |
download | openbsd-6db884de114b8b0a694e126243dee56a4699f9af.tar.gz openbsd-6db884de114b8b0a694e126243dee56a4699f9af.tar.bz2 openbsd-6db884de114b8b0a694e126243dee56a4699f9af.zip |
ec_lib.c: fix a few NULL misspellings
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index f4e621954e..683c49fef7 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_lib.c,v 1.54 2023/04/13 06:48:18 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.55 2023/04/13 07:44:12 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -82,7 +82,7 @@ EC_GROUP_new(const EC_METHOD *meth) | |||
82 | ECerror(EC_R_SLOT_FULL); | 82 | ECerror(EC_R_SLOT_FULL); |
83 | return NULL; | 83 | return NULL; |
84 | } | 84 | } |
85 | if (meth->group_init == 0) { | 85 | if (meth->group_init == NULL) { |
86 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 86 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
87 | return NULL; | 87 | return NULL; |
88 | } | 88 | } |
@@ -144,7 +144,7 @@ EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src) | |||
144 | { | 144 | { |
145 | EC_EXTRA_DATA *d; | 145 | EC_EXTRA_DATA *d; |
146 | 146 | ||
147 | if (dest->meth->group_copy == 0) { | 147 | if (dest->meth->group_copy == NULL) { |
148 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 148 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
149 | return 0; | 149 | return 0; |
150 | } | 150 | } |
@@ -568,7 +568,7 @@ EC_GROUP_get_curve_GF2m(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, | |||
568 | int | 568 | int |
569 | EC_GROUP_get_degree(const EC_GROUP *group) | 569 | EC_GROUP_get_degree(const EC_GROUP *group) |
570 | { | 570 | { |
571 | if (group->meth->group_get_degree == 0) { | 571 | if (group->meth->group_get_degree == NULL) { |
572 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 572 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
573 | return 0; | 573 | return 0; |
574 | } | 574 | } |
@@ -854,7 +854,7 @@ EC_POINT_new(const EC_GROUP *group) | |||
854 | ECerror(ERR_R_PASSED_NULL_PARAMETER); | 854 | ECerror(ERR_R_PASSED_NULL_PARAMETER); |
855 | return NULL; | 855 | return NULL; |
856 | } | 856 | } |
857 | if (group->meth->point_init == 0) { | 857 | if (group->meth->point_init == NULL) { |
858 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 858 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
859 | return NULL; | 859 | return NULL; |
860 | } | 860 | } |
@@ -893,7 +893,7 @@ EC_POINT_clear_free(EC_POINT *point) | |||
893 | int | 893 | int |
894 | EC_POINT_copy(EC_POINT *dest, const EC_POINT *src) | 894 | EC_POINT_copy(EC_POINT *dest, const EC_POINT *src) |
895 | { | 895 | { |
896 | if (dest->meth->point_copy == 0) { | 896 | if (dest->meth->point_copy == NULL) { |
897 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 897 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
898 | return 0; | 898 | return 0; |
899 | } | 899 | } |