summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/err
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/err')
-rw-r--r--src/lib/libcrypto/err/err.c3
-rw-r--r--src/lib/libcrypto/err/err.h4
-rw-r--r--src/lib/libcrypto/err/err_all.c8
-rw-r--r--src/lib/libcrypto/err/openssl.ec1
4 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c
index 75a1d0181e..f06320247c 100644
--- a/src/lib/libcrypto/err/err.c
+++ b/src/lib/libcrypto/err/err.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: err.c,v 1.40 2014/10/05 15:21:48 deraadt Exp $ */ 1/* $OpenBSD: err.c,v 1.41 2014/11/09 19:17:13 miod Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -157,6 +157,7 @@ static ERR_STRING_DATA ERR_str_libraries[] = {
157 {ERR_PACK(ERR_LIB_FIPS,0,0), "FIPS routines"}, 157 {ERR_PACK(ERR_LIB_FIPS,0,0), "FIPS routines"},
158 {ERR_PACK(ERR_LIB_CMS,0,0), "CMS routines"}, 158 {ERR_PACK(ERR_LIB_CMS,0,0), "CMS routines"},
159 {ERR_PACK(ERR_LIB_HMAC,0,0), "HMAC routines"}, 159 {ERR_PACK(ERR_LIB_HMAC,0,0), "HMAC routines"},
160 {ERR_PACK(ERR_LIB_GOST,0,0), "GOST routines"},
160 {0, NULL}, 161 {0, NULL},
161}; 162};
162 163
diff --git a/src/lib/libcrypto/err/err.h b/src/lib/libcrypto/err/err.h
index ced340ea80..87bb96eec7 100644
--- a/src/lib/libcrypto/err/err.h
+++ b/src/lib/libcrypto/err/err.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: err.h,v 1.21 2014/07/11 09:25:24 jsing Exp $ */ 1/* $OpenBSD: err.h,v 1.22 2014/11/09 19:17:13 miod Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -195,6 +195,7 @@ typedef struct err_state_st {
195#define ERR_LIB_TS 47 195#define ERR_LIB_TS 47
196#define ERR_LIB_HMAC 48 196#define ERR_LIB_HMAC 48
197#define ERR_LIB_JPAKE 49 197#define ERR_LIB_JPAKE 49
198#define ERR_LIB_GOST 50
198 199
199#define ERR_LIB_USER 128 200#define ERR_LIB_USER 128
200 201
@@ -231,6 +232,7 @@ typedef struct err_state_st {
231#define TSerr(f,r) ERR_PUT_error(ERR_LIB_TS,(f),(r),__FILE__,__LINE__) 232#define TSerr(f,r) ERR_PUT_error(ERR_LIB_TS,(f),(r),__FILE__,__LINE__)
232#define HMACerr(f,r) ERR_PUT_error(ERR_LIB_HMAC,(f),(r),__FILE__,__LINE__) 233#define HMACerr(f,r) ERR_PUT_error(ERR_LIB_HMAC,(f),(r),__FILE__,__LINE__)
233#define JPAKEerr(f,r) ERR_PUT_error(ERR_LIB_JPAKE,(f),(r),__FILE__,__LINE__) 234#define JPAKEerr(f,r) ERR_PUT_error(ERR_LIB_JPAKE,(f),(r),__FILE__,__LINE__)
235#define GOSTerr(f,r) ERR_PUT_error(ERR_LIB_GOST,(f),(r),__FILE__,__LINE__)
234 236
235#define ERR_PACK(l,f,r) (((((unsigned long)l)&0xffL)<<24L)| \ 237#define ERR_PACK(l,f,r) (((((unsigned long)l)&0xffL)<<24L)| \
236 ((((unsigned long)f)&0xfffL)<<12L)| \ 238 ((((unsigned long)f)&0xfffL)<<12L)| \
diff --git a/src/lib/libcrypto/err/err_all.c b/src/lib/libcrypto/err/err_all.c
index 7362220824..c880f1fbf3 100644
--- a/src/lib/libcrypto/err/err_all.c
+++ b/src/lib/libcrypto/err/err_all.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: err_all.c,v 1.18 2014/10/18 17:08:32 jsing Exp $ */ 1/* $OpenBSD: err_all.c,v 1.19 2014/11/09 19:17:13 miod Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -105,6 +105,9 @@
105#ifndef OPENSSL_NO_RSA 105#ifndef OPENSSL_NO_RSA
106#include <openssl/rsa.h> 106#include <openssl/rsa.h>
107#endif 107#endif
108#ifndef OPENSSL_NO_GOST
109#include <openssl/gost.h>
110#endif
108 111
109void 112void
110ERR_load_crypto_strings(void) 113ERR_load_crypto_strings(void)
@@ -157,5 +160,8 @@ ERR_load_crypto_strings(void)
157#ifndef OPENSSL_NO_CMS 160#ifndef OPENSSL_NO_CMS
158 ERR_load_CMS_strings(); 161 ERR_load_CMS_strings();
159#endif 162#endif
163#ifndef OPENSSL_NO_GOST
164 ERR_load_GOST_strings();
165#endif
160#endif 166#endif
161} 167}
diff --git a/src/lib/libcrypto/err/openssl.ec b/src/lib/libcrypto/err/openssl.ec
index c513734e94..dcebbba6c4 100644
--- a/src/lib/libcrypto/err/openssl.ec
+++ b/src/lib/libcrypto/err/openssl.ec
@@ -34,6 +34,7 @@ L STORE crypto/store/store.h crypto/store/str_err.c
34L TS crypto/ts/ts.h crypto/ts/ts_err.c 34L TS crypto/ts/ts.h crypto/ts/ts_err.c
35L HMAC crypto/hmac/hmac.h crypto/hmac/hmac_err.c 35L HMAC crypto/hmac/hmac.h crypto/hmac/hmac_err.c
36L CMS crypto/cms/cms.h crypto/cms/cms_err.c 36L CMS crypto/cms/cms.h crypto/cms/cms_err.c
37L GOST crypto/gost/gost.h crypto/gost/gost_err.c
37 38
38# additional header files to be scanned for function names 39# additional header files to be scanned for function names
39L NONE crypto/x509/x509_vfy.h NONE 40L NONE crypto/x509/x509_vfy.h NONE