We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crypto_util.c(241,2): error: extra ';' outside of a function [-Werror,-Wextra-semi] 241 | };
const char *FourQ_get_error_message(ECCRYPTO_STATUS Status) { // Output error/success message for a given ECCRYPTO_STATUS struct error_mapping { unsigned int index; char *string; } mapping[ECCRYPTO_STATUS_TYPE_SIZE] = { { ECCRYPTO_ERROR, ECCRYPTO_MSG_ERROR }, { ECCRYPTO_SUCCESS, ECCRYPTO_MSG_SUCCESS }, { ECCRYPTO_ERROR_DURING_TEST, ECCRYPTO_MSG_ERROR_DURING_TEST }, { ECCRYPTO_ERROR_UNKNOWN, ECCRYPTO_MSG_ERROR_UNKNOWN }, { ECCRYPTO_ERROR_NOT_IMPLEMENTED, ECCRYPTO_MSG_ERROR_NOT_IMPLEMENTED }, { ECCRYPTO_ERROR_NO_MEMORY, ECCRYPTO_MSG_ERROR_NO_MEMORY }, { ECCRYPTO_ERROR_INVALID_PARAMETER, ECCRYPTO_MSG_ERROR_INVALID_PARAMETER }, { ECCRYPTO_ERROR_SHARED_KEY, ECCRYPTO_MSG_ERROR_SHARED_KEY }, { ECCRYPTO_ERROR_SIGNATURE_VERIFICATION, ECCRYPTO_MSG_ERROR_SIGNATURE_VERIFICATION }, { ECCRYPTO_ERROR_HASH_TO_CURVE, ECCRYPTO_MSG_ERROR_HASH_TO_CURVE }, };
if (Status >= ECCRYPTO_STATUS_TYPE_SIZE || mapping[Status].string == NULL) { return "Unrecognized ECCRYPTO_STATUS"; } else { return mapping[Status].string; }
}; <-- HERE
The text was updated successfully, but these errors were encountered:
No branches or pull requests
crypto_util.c(241,2): error: extra ';' outside of a function [-Werror,-Wextra-semi]
241 | };
const char *FourQ_get_error_message(ECCRYPTO_STATUS Status)
{ // Output error/success message for a given ECCRYPTO_STATUS
struct error_mapping {
unsigned int index;
char *string;
} mapping[ECCRYPTO_STATUS_TYPE_SIZE] = {
{ ECCRYPTO_ERROR, ECCRYPTO_MSG_ERROR },
{ ECCRYPTO_SUCCESS, ECCRYPTO_MSG_SUCCESS },
{ ECCRYPTO_ERROR_DURING_TEST, ECCRYPTO_MSG_ERROR_DURING_TEST },
{ ECCRYPTO_ERROR_UNKNOWN, ECCRYPTO_MSG_ERROR_UNKNOWN },
{ ECCRYPTO_ERROR_NOT_IMPLEMENTED, ECCRYPTO_MSG_ERROR_NOT_IMPLEMENTED },
{ ECCRYPTO_ERROR_NO_MEMORY, ECCRYPTO_MSG_ERROR_NO_MEMORY },
{ ECCRYPTO_ERROR_INVALID_PARAMETER, ECCRYPTO_MSG_ERROR_INVALID_PARAMETER },
{ ECCRYPTO_ERROR_SHARED_KEY, ECCRYPTO_MSG_ERROR_SHARED_KEY },
{ ECCRYPTO_ERROR_SIGNATURE_VERIFICATION, ECCRYPTO_MSG_ERROR_SIGNATURE_VERIFICATION },
{ ECCRYPTO_ERROR_HASH_TO_CURVE, ECCRYPTO_MSG_ERROR_HASH_TO_CURVE },
};
}; <-- HERE
The text was updated successfully, but these errors were encountered: