Offer both EC and RSA in certs.c, RSA first
This commit is contained in:
parent
4618459fa1
commit
482a2828e4
2 changed files with 89 additions and 23 deletions
|
@ -31,14 +31,49 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern const char test_ca_crt[];
|
||||
extern const char test_ca_key[];
|
||||
extern const char test_ca_pwd[];
|
||||
extern const char test_srv_crt[];
|
||||
extern const char test_srv_key[];
|
||||
extern const char test_cli_crt[];
|
||||
extern const char test_cli_key[];
|
||||
/* First set of certificates: RSA, or ECDSA if RSA is not available */
|
||||
extern const char *test_ca_crt;
|
||||
extern const char *test_ca_key;
|
||||
extern const char *test_ca_pwd;
|
||||
extern const char *test_srv_crt;
|
||||
extern const char *test_srv_key;
|
||||
extern const char *test_cli_crt;
|
||||
extern const char *test_cli_key;
|
||||
|
||||
/* Second set of certificates: ECDSA is both are available */
|
||||
#if defined(POLARSSL_RSA_C) && defined(POLARSSL_RSA_C)
|
||||
extern const char *test_ca_crt2;
|
||||
extern const char *test_ca_key2;
|
||||
extern const char *test_ca_pwd2;
|
||||
extern const char *test_srv_crt2;
|
||||
extern const char *test_srv_key2;
|
||||
extern const char *test_cli_crt2;
|
||||
extern const char *test_cli_key2;
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_ECDSA_C)
|
||||
extern const char test_ca_crt_ec[];
|
||||
extern const char test_ca_key_ec[];
|
||||
extern const char test_ca_pwd_ec[];
|
||||
extern const char test_srv_crt_ec[];
|
||||
extern const char test_srv_key_ec[];
|
||||
extern const char test_cli_crt_ec[];
|
||||
extern const char test_cli_key_ec[];
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_RSA_C)
|
||||
extern const char test_ca_crt_rsa[];
|
||||
extern const char test_ca_key_rsa[];
|
||||
extern const char test_ca_pwd_rsa[];
|
||||
extern const char test_srv_crt_rsa[];
|
||||
extern const char test_srv_key_rsa[];
|
||||
extern const char test_cli_crt_rsa[];
|
||||
extern const char test_cli_key_rsa[];
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_DHM_C)
|
||||
extern const char test_dhm_params[];
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue