Fix some NULL misspellings
authortb <tb@openbsd.org>
Sat, 2 Dec 2023 19:07:10 +0000 (19:07 +0000)
committertb <tb@openbsd.org>
Sat, 2 Dec 2023 19:07:10 +0000 (19:07 +0000)
lib/libcrypto/evp/e_sm4.c

index c1664db..9de2080 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: e_sm4.c,v 1.9 2023/07/07 19:37:53 beck Exp $  */
+/*     $OpenBSD: e_sm4.c,v 1.10 2023/12/02 19:07:10 tb Exp $   */
 /*
  * Copyright (c) 2017, 2019 Ribose Inc
  *
@@ -154,9 +154,9 @@ static const EVP_CIPHER sm4_cbc = {
        .do_cipher = sm4_cbc_cipher,
        .cleanup = NULL,
        .ctx_size = sizeof(EVP_SM4_KEY),
-       .set_asn1_parameters = 0,
-       .get_asn1_parameters = 0,
-       .ctrl = 0,
+       .set_asn1_parameters = NULL,
+       .get_asn1_parameters = NULL,
+       .ctrl = NULL,
        .app_data = NULL,
 };
 
@@ -176,9 +176,9 @@ static const EVP_CIPHER sm4_cfb128 = {
        .do_cipher = sm4_cfb128_cipher,
        .cleanup = NULL,
        .ctx_size = sizeof(EVP_SM4_KEY),
-       .set_asn1_parameters = 0,
-       .get_asn1_parameters = 0,
-       .ctrl = 0,
+       .set_asn1_parameters = NULL,
+       .get_asn1_parameters = NULL,
+       .ctrl = NULL,
        .app_data = NULL,
 };
 
@@ -198,9 +198,9 @@ static const EVP_CIPHER sm4_ofb = {
        .do_cipher = sm4_ofb_cipher,
        .cleanup = NULL,
        .ctx_size = sizeof(EVP_SM4_KEY),
-       .set_asn1_parameters = 0,
-       .get_asn1_parameters = 0,
-       .ctrl = 0,
+       .set_asn1_parameters = NULL,
+       .get_asn1_parameters = NULL,
+       .ctrl = NULL,
        .app_data = NULL,
 };