mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Simplify the way default certs are used
This commit is contained in:
parent
cb99bdb27e
commit
a0fdf8b0a0
3 changed files with 41 additions and 42 deletions
|
|
@ -34,7 +34,10 @@ extern "C" {
|
|||
/* Concatenation of all available CA certificates */
|
||||
extern const char test_ca_list[];
|
||||
|
||||
/* First set of certificates: RSA, or ECDSA if RSA is not available */
|
||||
/*
|
||||
* Convenience for users who just want a certificate:
|
||||
* RSA by default, or ECDSA if RSA i not available
|
||||
*/
|
||||
extern const char *test_ca_crt;
|
||||
extern const char *test_ca_key;
|
||||
extern const char *test_ca_pwd;
|
||||
|
|
@ -43,17 +46,6 @@ 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[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue