File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/regress/lib/libcrypto/gost Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- /* $OpenBSD: gost2814789t.c,v 1.6 2021/12/04 08:15:16 tb Exp $ */
1
+ /* $OpenBSD: gost2814789t.c,v 1.7 2022/02/08 17:59:39 tb Exp $ */
2
2
/* vim: set fileencoding=ascii : Charset: ASCII */
3
3
/* test/gostr2814789t.c */
4
4
/* ====================================================================
@@ -1404,7 +1404,8 @@ int main(int argc, char *argv[])
1404
1404
enlf = 0 ;
1405
1405
else
1406
1406
EVP_EncryptFinal_ex (ectx , bTest1 , & enlf );
1407
- EVP_CIPHER_CTX_reset (ectx );
1407
+ EVP_CIPHER_CTX_free (ectx );
1408
+ ectx = NULL ;
1408
1409
break ;
1409
1410
case G89_IMIT :
1410
1411
if ((mctx = EVP_MD_CTX_new ()) == NULL )
@@ -1435,7 +1436,8 @@ int main(int argc, char *argv[])
1435
1436
}
1436
1437
siglen = 4 ;
1437
1438
OPENSSL_assert (EVP_DigestSignFinal (mctx , bTest , & siglen ));
1438
- EVP_MD_CTX_reset (mctx );
1439
+ EVP_MD_CTX_free (mctx );
1440
+ mctx = NULL ;
1439
1441
EVP_PKEY_free (mac_key );
1440
1442
enlu = (int )tcs [t ].ullLen ;
1441
1443
enlf = 0 ;
You can’t perform that action at this time.
0 commit comments