move max frag error to S2N_ERR_T_PROTO
@@ -79,6 +79,8 @@ typedef enum {
S2N_ERR_RECORD_LIMIT,
S2N_ERR_CERT_UNTRUSTED,
S2N_ERR_CERT_TYPE_UNSUPPORTED,
+ S2N_ERR_INVALID_MAX_FRAG_LEN,
+ S2N_ERR_MAX_FRAG_LEN_MISMATCH,
/* S2N_ERR_T_INTERNAL */
S2N_ERR_MADVISE = S2N_ERR_T_INTERNAL_START,
S2N_ERR_ALLOC,
@@ -141,8 +143,6 @@ typedef enum {
S2N_ERR_INVALID_SCT_LIST,
S2N_ERR_INVALID_OCSP_RESPONSE,
S2N_ERR_CANCELLED,
- S2N_ERR_INVALID_MAX_FRAG_LEN,
- S2N_ERR_MAX_FRAG_LEN_MISMATCH,
} s2n_error;
#define S2N_DEBUG_STR_LEN 128
