Partial fix for #7 (Also sent BR_ERR_UNSUPPORTED_VERSION before).
Firefix was sending BadCertificate alert messages through TLS, with a self-signed certificate. We were just transmuting the bearssl error to our rust enum, but the BR_ERR_RECV_FATAL_ALERT, BR_ERR_SEND_FATAL_ALERT errors are actually OR'ed in with the Alert. Given that this can panic, don't transmute c "enums" to rust enums, but do a match with an "Other(...)" option for unrecognized values.
Partial fix for #7 (Also sent BR_ERR_UNSUPPORTED_VERSION before).
Firefix was sending BadCertificate alert messages through TLS, with a self-signed certificate. We were just transmuting the bearssl error to our rust enum, but the BR_ERR_RECV_FATAL_ALERT, BR_ERR_SEND_FATAL_ALERT errors are actually OR'ed in with the Alert. Given that this can panic, don't transmute c "enums" to rust enums, but do a match with an "Other(...)" option for unrecognized values.