From 3c3b00adb02f1d1203ca064b862a54fa62c436a9 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 5 May 2022 08:48:05 +0000 Subject: [PATCH] Provide KDFerr() and KDFerror() macros ok beck jsing --- lib/libcrypto/err/err.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libcrypto/err/err.h b/lib/libcrypto/err/err.h index 20fa9084a6c..f792a6db232 100644 --- a/lib/libcrypto/err/err.h +++ b/lib/libcrypto/err/err.h @@ -1,4 +1,4 @@ -/* $OpenBSD: err.h,v 1.26 2021/11/24 01:12:43 beck Exp $ */ +/* $OpenBSD: err.h,v 1.27 2022/05/05 08:48:05 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -197,6 +197,7 @@ typedef struct err_state_st { #define ERR_LIB_JPAKE 49 #define ERR_LIB_GOST 50 #define ERR_LIB_CT 51 +#define ERR_LIB_KDF 52 #define ERR_LIB_USER 128 @@ -236,6 +237,7 @@ typedef struct err_state_st { #define GOSTerr(f,r) ERR_PUT_error(ERR_LIB_GOST,(f),(r),__FILE__,__LINE__) #define SSLerr(f,r) ERR_PUT_error(ERR_LIB_SSL,(f),(r),__FILE__,__LINE__) #define CTerr(f, r) ERR_PUT_error(ERR_LIB_CT,(f),(r),__FILE__,__LINE__) +#define KDFerr(f, r) ERR_PUT_error(ERR_LIB_KDF,(f),(r),__FILE__,__LINE__) #endif #ifdef LIBRESSL_INTERNAL @@ -273,6 +275,7 @@ typedef struct err_state_st { #define JPAKEerror(r) ERR_PUT_error(ERR_LIB_JPAKE,(0xfff),(r),__FILE__,__LINE__) #define GOSTerror(r) ERR_PUT_error(ERR_LIB_GOST,(0xfff),(r),__FILE__,__LINE__) #define CTerror(r) ERR_PUT_error(ERR_LIB_CT,(0xfff),(r),__FILE__,__LINE__) +#define KDFerror(r) ERR_PUT_error(ERR_LIB_KDF,(0xfff),(r),__FILE__,__LINE__) #endif #define ERR_PACK(l,f,r) (((((unsigned long)l)&0xffL)<<24L)| \ -- 2.20.1