summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/engine')
-rw-r--r--src/lib/libcrypto/engine/eng_lib.c5
-rw-r--r--src/lib/libcrypto/engine/hw_cryptodev.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libcrypto/engine/eng_lib.c b/src/lib/libcrypto/engine/eng_lib.c
index 5ced58c86e..ce8d7b3018 100644
--- a/src/lib/libcrypto/engine/eng_lib.c
+++ b/src/lib/libcrypto/engine/eng_lib.c
@@ -65,7 +65,7 @@ ENGINE *ENGINE_new(void)
65 { 65 {
66 ENGINE *ret; 66 ENGINE *ret;
67 67
68 ret = (ENGINE *)malloc(sizeof(ENGINE)); 68 ret = malloc(sizeof(ENGINE));
69 if(ret == NULL) 69 if(ret == NULL)
70 { 70 {
71 ENGINEerr(ENGINE_F_ENGINE_NEW, ERR_R_MALLOC_FAILURE); 71 ENGINEerr(ENGINE_F_ENGINE_NEW, ERR_R_MALLOC_FAILURE);
@@ -152,8 +152,7 @@ static int int_cleanup_check(int create)
152 } 152 }
153static ENGINE_CLEANUP_ITEM *int_cleanup_item(ENGINE_CLEANUP_CB *cb) 153static ENGINE_CLEANUP_ITEM *int_cleanup_item(ENGINE_CLEANUP_CB *cb)
154 { 154 {
155 ENGINE_CLEANUP_ITEM *item = malloc(sizeof( 155 ENGINE_CLEANUP_ITEM *item = malloc(sizeof(ENGINE_CLEANUP_ITEM));
156 ENGINE_CLEANUP_ITEM));
157 if(!item) return NULL; 156 if(!item) return NULL;
158 item->cb = cb; 157 item->cb = cb;
159 return item; 158 return item;
diff --git a/src/lib/libcrypto/engine/hw_cryptodev.c b/src/lib/libcrypto/engine/hw_cryptodev.c
index 7da9913d28..7700adf971 100644
--- a/src/lib/libcrypto/engine/hw_cryptodev.c
+++ b/src/lib/libcrypto/engine/hw_cryptodev.c
@@ -908,7 +908,7 @@ crparam2bn(struct crparam *crp, BIGNUM *a)
908 if (bytes == 0) 908 if (bytes == 0)
909 return (-1); 909 return (-1);
910 910
911 if ((pd = (u_int8_t *) malloc(bytes)) == NULL) 911 if ((pd = malloc(bytes)) == NULL)
912 return (-1); 912 return (-1);
913 913
914 for (i = 0; i < bytes; i++) 914 for (i = 0; i < bytes; i++)