From 085e3cecbdadde10e93abfb4dbd3e865aeed58d6 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Thu, 3 Jun 2021 15:22:05 +0200 Subject: 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 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15609) --- crypto/packet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/packet.c') 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 +#include #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; } -- cgit v1.2.3