summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-05-15 10:27:09 +0100
committerMatt Caswell <matt@openssl.org>2021-05-18 15:30:25 +0100
commit40692ed7c80ae3bb6c92c674fb90a5e15d81052d (patch)
treee21057e3572c5d67325487563e0a940ebc4d0d13 /include
parent9be5f9a8698b0d902ef1281716eda73a4d8478ed (diff)
Better error messages if there are no encoders/decoders/store loaders
If you don't have the base or default providers loaded and therefore there are no encoders/decoders or store loaders then the error messages can be cryptic. We provide better hints about how to fix the problem. Fixes #13798 Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15306)
Diffstat (limited to 'include')
-rw-r--r--include/crypto/storeerr.h2
-rw-r--r--include/openssl/decodererr.h1
-rw-r--r--include/openssl/storeerr.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/include/crypto/storeerr.h b/include/crypto/storeerr.h
index 94d4a1cf79..ed4a219509 100644
--- a/include/crypto/storeerr.h
+++ b/include/crypto/storeerr.h
@@ -1,6 +1,6 @@
/*
* Generated by util/mkerr.pl DO NOT EDIT
- * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
diff --git a/include/openssl/decodererr.h b/include/openssl/decodererr.h
index 824a0a9253..4212a38bca 100644
--- a/include/openssl/decodererr.h
+++ b/include/openssl/decodererr.h
@@ -22,6 +22,7 @@
* OSSL_DECODER reason codes.
*/
# define OSSL_DECODER_R_COULD_NOT_DECODE_OBJECT 101
+# define OSSL_DECODER_R_DECODER_NOT_FOUND 102
# define OSSL_DECODER_R_MISSING_GET_PARAMS 100
#endif
diff --git a/include/openssl/storeerr.h b/include/openssl/storeerr.h
index 45e781d2aa..00529c88b5 100644
--- a/include/openssl/storeerr.h
+++ b/include/openssl/storeerr.h
@@ -35,6 +35,7 @@
# define OSSL_STORE_R_NOT_A_PRIVATE_KEY 102
# define OSSL_STORE_R_NOT_A_PUBLIC_KEY 122
# define OSSL_STORE_R_NOT_PARAMETERS 104
+# define OSSL_STORE_R_NO_LOADERS_FOUND 123
# define OSSL_STORE_R_PASSPHRASE_CALLBACK_ERROR 114
# define OSSL_STORE_R_PATH_MUST_BE_ABSOLUTE 108
# define OSSL_STORE_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES 119