Skip to content

Commit 2c536ce

Browse files
authored
Merge pull request #159 from ejohnstown/fixes
2 parents 8debda1 + d9b2180 commit 2c536ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/we_digest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ int we_init_sha224_meth()
10901090

10911091
WOLFENGINE_ENTER(WE_LOG_DIGEST, "we_init_sha224_meth");
10921092

1093-
ret = (we_sha224_md = EVP_MD_meth_new(NID_sha256, EVP_PKEY_NONE)) != NULL;
1093+
ret = (we_sha224_md = EVP_MD_meth_new(NID_sha224, EVP_PKEY_NONE)) != NULL;
10941094
if (ret == 1) {
10951095
ret = EVP_MD_meth_set_init(we_sha224_md, we_sha224_init);
10961096
}

src/we_internal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ static int wolfengine_init(ENGINE *e)
799799
}
800800
#ifdef WE_HAVE_ECDSA
801801
if (ret == 1) {
802-
we_init_ecdsa_sha1_meth();
802+
ret = we_init_ecdsa_sha1_meth();
803803
}
804804
#endif
805805
#endif
@@ -947,13 +947,13 @@ static int wolfengine_init(ENGINE *e)
947947
#ifdef WE_HAVE_ECDSA
948948
#if OPENSSL_VERSION_NUMBER <= 0x100020ffL
949949
if (ret == 1) {
950-
we_init_ecdsa_meth();
950+
ret = we_init_ecdsa_meth();
951951
}
952952
#endif
953953
#endif
954954
#ifdef WE_HAVE_PBE
955955
if (ret == 1) {
956-
we_init_pbe_keygen();
956+
ret = we_init_pbe_keygen();
957957
}
958958
#endif
959959

0 commit comments

Comments
 (0)