X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=engines%2Fe_gmp_err.h;h=637abbc9a005a743f147be1dac2f13726d1f3137;hp=cf46f0ec742af98e3157af3ae97dd0c99bfe2698;hb=68249414405500660578b337f1c8dd5dd4bb5bcc;hpb=a85bef18995496a5f503350d921b2c98686cd12e diff --git a/engines/e_gmp_err.h b/engines/e_gmp_err.h index cf46f0ec74..637abbc9a0 100644 --- a/engines/e_gmp_err.h +++ b/engines/e_gmp_err.h @@ -6,7 +6,7 @@ * are met: * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. + * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in @@ -53,27 +53,32 @@ */ #ifndef HEADER_GMP_ERR_H -#define HEADER_GMP_ERR_H +# define HEADER_GMP_ERR_H + +#ifdef __cplusplus +extern "C" { +#endif /* BEGIN ERROR CODES */ -/* The following lines are auto generated by the script mkerr.pl. Any changes +/* + * The following lines are auto generated by the script mkerr.pl. Any changes * made after this point may be overwritten when the script is next run. */ static void ERR_load_GMP_strings(void); static void ERR_unload_GMP_strings(void); static void ERR_GMP_error(int function, int reason, char *file, int line); -#define GMPerr(f,r) ERR_GMP_error((f),(r),__FILE__,__LINE__) +# define GMPerr(f,r) ERR_GMP_error((f),(r),__FILE__,__LINE__) /* Error codes for the GMP functions. */ /* Function codes. */ -#define GMP_F_E_GMP_CTRL 100 -#define GMP_F_E_GMP_RSA_MOD_EXP 101 +# define GMP_F_E_GMP_CTRL 100 +# define GMP_F_E_GMP_RSA_MOD_EXP 101 /* Reason codes. */ -#define GMP_R_CTRL_COMMAND_NOT_IMPLEMENTED 100 -#define GMP_R_KEY_CONTEXT_ERROR 101 -#define GMP_R_MISSING_KEY_COMPONENTS 102 +# define GMP_R_CTRL_COMMAND_NOT_IMPLEMENTED 100 +# define GMP_R_KEY_CONTEXT_ERROR 101 +# define GMP_R_MISSING_KEY_COMPONENTS 102 #ifdef __cplusplus }