diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-05-05 08:48:06 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-05-05 08:48:06 +0000 |
commit | d7d7dd7b0bc2a82c5571bfb8c03618b4da61fd0c (patch) | |
tree | a138c192210694fbb1699dd21f703bc1b18c754e /lib | |
parent | d7e2f939a1012fc428dec0ab4efbd0c83305ac7b (diff) |
Provide KDFerr() and KDFerror() macros
ok beck jsing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/err/err.h | 5 |
1 files changed, 4 insertions, 1 deletions
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)| \ |