summaryrefslogtreecommitdiffstats
path: root/crypto/packet.c
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-06-03 15:22:05 +0200
committerTomas Mraz <tomas@openssl.org>2021-06-04 17:06:47 +0200
commit085e3cecbdadde10e93abfb4dbd3e865aeed58d6 (patch)
treefdb56464e81404811e5254b8953bb6b83b70a139 /crypto/packet.c
parent51cda01c61870c2433fbbd54d69f2267362ea608 (diff)
Move libssl related defines used by fips provider to prov_ssl.h
This nicely reduces the number of files considered as fips provider sources. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15609)
Diffstat (limited to 'crypto/packet.c')
-rw-r--r--crypto/packet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/packet.c b/crypto/packet.c
index 6cd1ed3ed3..80202bc08f 100644
--- a/crypto/packet.c
+++ b/crypto/packet.c
@@ -9,7 +9,7 @@
#include "internal/cryptlib.h"
#include "internal/packet.h"
-#include <openssl/sslerr.h>
+#include <openssl/err.h>
#define DEFAULT_BUF_SIZE 256
@@ -105,7 +105,7 @@ static int wpacket_intern_init_len(WPACKET *pkt, size_t lenbytes)
pkt->written = 0;
if ((pkt->subs = OPENSSL_zalloc(sizeof(*pkt->subs))) == NULL) {
- ERR_raise(ERR_LIB_SSL, ERR_R_MALLOC_FAILURE);
+ ERR_raise(ERR_LIB_CRYPTO, ERR_R_MALLOC_FAILURE);
return 0;
}
@@ -352,7 +352,7 @@ int WPACKET_start_sub_packet_len__(WPACKET *pkt, size_t lenbytes)
return 0;
if ((sub = OPENSSL_zalloc(sizeof(*sub))) == NULL) {
- ERR_raise(ERR_LIB_SSL, ERR_R_MALLOC_FAILURE);
+ ERR_raise(ERR_LIB_CRYPTO, ERR_R_MALLOC_FAILURE);
return 0;
}