]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gost_grasshopper_cipher.c
Ensure that CMAC_ACPKM_CTX_copy works with 2 non-NULL pointers - fixup
[openssl-gost/engine.git] / gost_grasshopper_cipher.c
index 38dd98776d06a3e6a7b7b99b854e4e746a19cd65..001746bc69524dd8e08ecc6b1b48cd76dd354379 100644 (file)
@@ -906,7 +906,6 @@ static int gost_grasshopper_cipher_ctl(EVP_CIPHER_CTX *ctx, int type, int arg, v
 
       return gost2015_process_unprotected_attributes(x, arg, KUZNYECHIK_MAC_MAX_SIZE, c->tag);
     }
-    return 1;
     case EVP_CTRL_COPY: {
         EVP_CIPHER_CTX *out = ptr;
 
@@ -934,7 +933,7 @@ static int gost_grasshopper_cipher_ctl(EVP_CIPHER_CTX *ctx, int type, int arg, v
 }
 
 /* Called directly by CMAC_ACPKM_Init() */
-const GRASSHOPPER_INLINE EVP_CIPHER *cipher_gost_grasshopper_ctracpkm()
+const EVP_CIPHER *cipher_gost_grasshopper_ctracpkm()
 {
     return GOST_init_cipher(&grasshopper_ctr_acpkm_cipher);
 }