summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-03-04 20:47:04 +0000
committertb <>2023-03-04 20:47:04 +0000
commit24d9ef03af8101abac25f58af7b7ec7bfa9050c9 (patch)
treec43c3be42d42f908f987e05bf59b8f16924f09bc
parentbf246b974eb02d76c29ba645bd1d9fb09b1dd1db (diff)
downloadopenbsd-24d9ef03af8101abac25f58af7b7ec7bfa9050c9.tar.gz
openbsd-24d9ef03af8101abac25f58af7b7ec7bfa9050c9.tar.bz2
openbsd-24d9ef03af8101abac25f58af7b7ec7bfa9050c9.zip
Provide DSA_R_INVALID_PARAMETERS error code
This has been missing for a while already and will be used in a few upcoming commits. ok beck jsing
-rw-r--r--src/lib/libcrypto/dsa/dsa.h3
-rw-r--r--src/lib/libcrypto/dsa/dsa_err.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h
index eab35a6f6f..1fa5fc3132 100644
--- a/src/lib/libcrypto/dsa/dsa.h
+++ b/src/lib/libcrypto/dsa/dsa.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: dsa.h,v 1.39 2022/07/12 14:42:49 kn Exp $ */ 1/* $OpenBSD: dsa.h,v 1.40 2023/03/04 20:47:04 tb 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 *
@@ -272,6 +272,7 @@ void ERR_load_DSA_strings(void);
272#define DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 100 272#define DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 100
273#define DSA_R_DECODE_ERROR 104 273#define DSA_R_DECODE_ERROR 104
274#define DSA_R_INVALID_DIGEST_TYPE 106 274#define DSA_R_INVALID_DIGEST_TYPE 106
275#define DSA_R_INVALID_PARAMETERS 112
275#define DSA_R_MISSING_PARAMETERS 101 276#define DSA_R_MISSING_PARAMETERS 101
276#define DSA_R_MODULUS_TOO_LARGE 103 277#define DSA_R_MODULUS_TOO_LARGE 103
277#define DSA_R_NEED_NEW_SETUP_VALUES 110 278#define DSA_R_NEED_NEW_SETUP_VALUES 110
diff --git a/src/lib/libcrypto/dsa/dsa_err.c b/src/lib/libcrypto/dsa/dsa_err.c
index 33d1e439da..8f105a8759 100644
--- a/src/lib/libcrypto/dsa/dsa_err.c
+++ b/src/lib/libcrypto/dsa/dsa_err.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dsa_err.c,v 1.17 2022/11/19 06:33:00 tb Exp $ */ 1/* $OpenBSD: dsa_err.c,v 1.18 2023/03/04 20:47:04 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -78,6 +78,7 @@ static ERR_STRING_DATA DSA_str_reasons[]=
78{ERR_REASON(DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE),"data too large for key size"}, 78{ERR_REASON(DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE),"data too large for key size"},
79{ERR_REASON(DSA_R_DECODE_ERROR) ,"decode error"}, 79{ERR_REASON(DSA_R_DECODE_ERROR) ,"decode error"},
80{ERR_REASON(DSA_R_INVALID_DIGEST_TYPE) ,"invalid digest type"}, 80{ERR_REASON(DSA_R_INVALID_DIGEST_TYPE) ,"invalid digest type"},
81{ERR_REASON(DSA_R_INVALID_PARAMETERS) ,"invalid parameters"},
81{ERR_REASON(DSA_R_MISSING_PARAMETERS) ,"missing parameters"}, 82{ERR_REASON(DSA_R_MISSING_PARAMETERS) ,"missing parameters"},
82{ERR_REASON(DSA_R_MODULUS_TOO_LARGE) ,"modulus too large"}, 83{ERR_REASON(DSA_R_MODULUS_TOO_LARGE) ,"modulus too large"},
83{ERR_REASON(DSA_R_NEED_NEW_SETUP_VALUES) ,"need new setup values"}, 84{ERR_REASON(DSA_R_NEED_NEW_SETUP_VALUES) ,"need new setup values"},