aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/error
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2022-08-23 13:55:32 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2022-08-23 13:55:32 +0300
commit843fc844ab1de7725a9eaaab9d308ada1aa87e72 (patch)
tree82a048515821a5c92a53a278ec3e81aa44b3772e /contrib/restricted/aws/s2n/error
parente200c8e2aa45d15f672a8ea2029e39a9f1620e6a (diff)
downloadydb-843fc844ab1de7725a9eaaab9d308ada1aa87e72.tar.gz
Update contrib/restricted/aws/s2n to 1.3.20
Diffstat (limited to 'contrib/restricted/aws/s2n/error')
-rw-r--r--contrib/restricted/aws/s2n/error/s2n_errno.c7
-rw-r--r--contrib/restricted/aws/s2n/error/s2n_errno.h5
2 files changed, 11 insertions, 1 deletions
diff --git a/contrib/restricted/aws/s2n/error/s2n_errno.c b/contrib/restricted/aws/s2n/error/s2n_errno.c
index 3ade2ea4ee..f2848af900 100644
--- a/contrib/restricted/aws/s2n/error/s2n_errno.c
+++ b/contrib/restricted/aws/s2n/error/s2n_errno.c
@@ -94,7 +94,11 @@ static const char *no_such_error = "Internal s2n error";
ERR_ENTRY(S2N_ERR_NON_EMPTY_RENEGOTIATION_INFO, "renegotiation_info should be empty") \
ERR_ENTRY(S2N_ERR_RECORD_LIMIT, "TLS record limit reached") \
ERR_ENTRY(S2N_ERR_CERT_UNTRUSTED, "Certificate is untrusted") \
+ ERR_ENTRY(S2N_ERR_CERT_REVOKED, "Certificate has been revoked by the CA") \
+ ERR_ENTRY(S2N_ERR_CERT_EXPIRED, "Certificate has expired") \
ERR_ENTRY(S2N_ERR_CERT_TYPE_UNSUPPORTED, "Certificate Type is unsupported") \
+ ERR_ENTRY(S2N_ERR_CERT_INVALID, "Certificate is invalid") \
+ ERR_ENTRY(S2N_ERR_CERT_MAX_CHAIN_DEPTH_EXCEEDED, "The maximum certificate chain depth has been exceeded") \
ERR_ENTRY(S2N_ERR_INVALID_MAX_FRAG_LEN, "invalid Maximum Fragmentation Length encountered") \
ERR_ENTRY(S2N_ERR_MAX_FRAG_LEN_MISMATCH, "Negotiated Maximum Fragmentation Length from server does not match the requested length by client") \
ERR_ENTRY(S2N_ERR_PROTOCOL_VERSION_UNSUPPORTED, "TLS protocol version is not supported by configuration") \
@@ -270,7 +274,8 @@ static const char *no_such_error = "Internal s2n error";
ERR_ENTRY(S2N_ERR_SECRET_SCHEDULE_STATE, "Correct inputs to secret calculation not available") \
ERR_ENTRY(S2N_ERR_LIBCRYPTO_VERSION_NUMBER_MISMATCH, "The libcrypto major version number seen at compile-time is different from the major version number seen at run-time") \
ERR_ENTRY(S2N_ERR_LIBCRYPTO_VERSION_NAME_MISMATCH, "The libcrypto major version name seen at compile-time is different from the major version name seen at run-time") \
- ERR_ENTRY(S2N_ERR_CERT_OWNERSHIP, "The ownership of the certificate chain is incompatible with the operation")
+ ERR_ENTRY(S2N_ERR_CERT_OWNERSHIP, "The ownership of the certificate chain is incompatible with the operation") \
+ ERR_ENTRY(S2N_ERR_INTERNAL_LIBCRYPTO_ERROR, "An internal error has occurred in the libcrypto API")
/* clang-format on */
#define ERR_STR_CASE(ERR, str) case ERR: return str;
diff --git a/contrib/restricted/aws/s2n/error/s2n_errno.h b/contrib/restricted/aws/s2n/error/s2n_errno.h
index a257500ef4..f0901c768b 100644
--- a/contrib/restricted/aws/s2n/error/s2n_errno.h
+++ b/contrib/restricted/aws/s2n/error/s2n_errno.h
@@ -107,7 +107,11 @@ typedef enum {
S2N_ERR_NON_EMPTY_RENEGOTIATION_INFO,
S2N_ERR_RECORD_LIMIT,
S2N_ERR_CERT_UNTRUSTED,
+ S2N_ERR_CERT_REVOKED,
+ S2N_ERR_CERT_EXPIRED,
S2N_ERR_CERT_TYPE_UNSUPPORTED,
+ S2N_ERR_CERT_INVALID,
+ S2N_ERR_CERT_MAX_CHAIN_DEPTH_EXCEEDED,
S2N_ERR_INVALID_MAX_FRAG_LEN,
S2N_ERR_MAX_FRAG_LEN_MISMATCH,
S2N_ERR_PROTOCOL_VERSION_UNSUPPORTED,
@@ -288,6 +292,7 @@ typedef enum {
S2N_ERR_KEYING_MATERIAL_EXPIRED,
S2N_ERR_SECRET_SCHEDULE_STATE,
S2N_ERR_CERT_OWNERSHIP,
+ S2N_ERR_INTERNAL_LIBCRYPTO_ERROR,
S2N_ERR_T_USAGE_END,
} s2n_error;