parent
d548925990
commit
ed7d505474
@ -1,2 +1,2 @@
|
|||||||
SOURCES/go1.19.10-1-openssl-fips.tar.gz
|
SOURCES/go1.19.13-2-openssl-fips.tar.gz
|
||||||
SOURCES/go1.19.10.tar.gz
|
SOURCES/go1.19.13.tar.gz
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
b282758e02d28b0c946f3d42a3a2a2df83995733 SOURCES/go1.19.10-1-openssl-fips.tar.gz
|
3335b6ee2baab3a616b7a969b62ac1c9ed136b74 SOURCES/go1.19.13-2-openssl-fips.tar.gz
|
||||||
d894732eb0aebd89eeb404e3e8e51af47a581e71 SOURCES/go1.19.10.tar.gz
|
5627a7cd27f73a12c909dd818d310deda7146b86 SOURCES/go1.19.13.tar.gz
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
diff --git a/src/vendor/github.com/golang-fips/openssl-fips/openssl/openssl_evp.c b/src/vendor/github.com/golang-fips/openssl-fips/openssl/openssl_evp.c
|
|
||||||
index 2124978..1f853b4 100644
|
|
||||||
--- a/src/vendor/github.com/golang-fips/openssl-fips/openssl/openssl_evp.c
|
|
||||||
+++ b/src/vendor/github.com/golang-fips/openssl-fips/openssl/openssl_evp.c
|
|
||||||
@@ -44,7 +44,11 @@ int _goboringcrypto_EVP_sign_raw(EVP_MD *md, EVP_PKEY_CTX *ctx, const uint8_t *m
|
|
||||||
GO_RSA *rsa_key) {
|
|
||||||
int ret = 0;
|
|
||||||
GO_EVP_PKEY *pk = _goboringcrypto_EVP_PKEY_new();
|
|
||||||
- _goboringcrypto_EVP_PKEY_assign_RSA(pk, rsa_key);
|
|
||||||
+ if (!pk)
|
|
||||||
+ return 0;
|
|
||||||
+
|
|
||||||
+ if (!(_goboringcrypto_EVP_PKEY_set1_RSA(pk, rsa_key)))
|
|
||||||
+ goto err;
|
|
||||||
|
|
||||||
if (!ctx && !(ctx = _goboringcrypto_EVP_PKEY_CTX_new(pk, NULL)))
|
|
||||||
goto err;
|
|
||||||
@@ -64,6 +68,8 @@ int _goboringcrypto_EVP_sign_raw(EVP_MD *md, EVP_PKEY_CTX *ctx, const uint8_t *m
|
|
||||||
err:
|
|
||||||
if (ctx)
|
|
||||||
_goboringcrypto_EVP_PKEY_CTX_free(ctx);
|
|
||||||
+ if (pk)
|
|
||||||
+ _goboringcrypto_EVP_PKEY_free(pk);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
@@ -104,7 +110,11 @@ int _goboringcrypto_EVP_verify_raw(const uint8_t *msg, size_t msgLen,
|
|
||||||
int ret = 0;
|
|
||||||
EVP_PKEY_CTX *ctx;
|
|
||||||
GO_EVP_PKEY *pk = _goboringcrypto_EVP_PKEY_new();
|
|
||||||
- _goboringcrypto_EVP_PKEY_assign_RSA(pk, rsa_key);
|
|
||||||
+ if (!pk)
|
|
||||||
+ return 0;
|
|
||||||
+
|
|
||||||
+ if (!(_goboringcrypto_EVP_PKEY_set1_RSA(pk, rsa_key)))
|
|
||||||
+ goto err;
|
|
||||||
|
|
||||||
if (!(ctx = _goboringcrypto_EVP_PKEY_CTX_new(pk, NULL)))
|
|
||||||
goto err;
|
|
||||||
@@ -124,6 +134,8 @@ int _goboringcrypto_EVP_verify_raw(const uint8_t *msg, size_t msgLen,
|
|
||||||
err:
|
|
||||||
if (ctx)
|
|
||||||
_goboringcrypto_EVP_PKEY_CTX_free(ctx);
|
|
||||||
+ if (pk)
|
|
||||||
+ _goboringcrypto_EVP_PKEY_free(pk);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
Loading…
Reference in new issue