mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 11:15:39 +01:00
Add configuration item for the PK module
This commit is contained in:
parent
0d42049440
commit
c40b4c3708
@ -1093,6 +1093,21 @@
|
|||||||
*/
|
*/
|
||||||
#define POLARSSL_PEM_C
|
#define POLARSSL_PEM_C
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \def POLARSSL_PK_C
|
||||||
|
*
|
||||||
|
* Enable the generic public (asymetric) key layer.
|
||||||
|
*
|
||||||
|
* Module: library/pk.c
|
||||||
|
* Caller: library/x509parse.c
|
||||||
|
* library/ssl_tls.c
|
||||||
|
* library/ssl_cli.c
|
||||||
|
* library/ssl_srv.c
|
||||||
|
*
|
||||||
|
* Uncomment to enable generic public key wrappers.
|
||||||
|
*/
|
||||||
|
#define POLARSSL_PK_C
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def POLARSSL_PKCS5_C
|
* \def POLARSSL_PKCS5_C
|
||||||
*
|
*
|
||||||
@ -1248,7 +1263,7 @@
|
|||||||
* Caller: library/ssl_cli.c
|
* Caller: library/ssl_cli.c
|
||||||
* library/ssl_srv.c
|
* library/ssl_srv.c
|
||||||
*
|
*
|
||||||
* Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_CIPHER_C
|
* Requires: POLARSSL_MD5_C, POLARSSL_SHA1_C, POLARSSL_CIPHER_C, POLARSSL_PK_C
|
||||||
*
|
*
|
||||||
* This module is required for SSL/TLS.
|
* This module is required for SSL/TLS.
|
||||||
*/
|
*/
|
||||||
@ -1288,7 +1303,7 @@
|
|||||||
* library/ssl_tls.c
|
* library/ssl_tls.c
|
||||||
*
|
*
|
||||||
* Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_OID_C,
|
* Requires: POLARSSL_ASN1_PARSE_C, POLARSSL_BIGNUM_C, POLARSSL_OID_C,
|
||||||
* POLARSSL_RSA_C
|
* POLARSSL_PK_C
|
||||||
*
|
*
|
||||||
* This module is required for X.509 certificate parsing.
|
* This module is required for X.509 certificate parsing.
|
||||||
*/
|
*/
|
||||||
@ -1483,7 +1498,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(POLARSSL_SSL_TLS_C) && ( !defined(POLARSSL_MD5_C) || \
|
#if defined(POLARSSL_SSL_TLS_C) && ( !defined(POLARSSL_MD5_C) || \
|
||||||
!defined(POLARSSL_SHA1_C) || !defined(POLARSSL_CIPHER_C) )
|
!defined(POLARSSL_SHA1_C) || !defined(POLARSSL_CIPHER_C) ) || \
|
||||||
|
!defined(POLARSSL_PK_C)
|
||||||
#error "POLARSSL_SSL_TLS_C defined, but not all prerequisites"
|
#error "POLARSSL_SSL_TLS_C defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1498,7 +1514,7 @@
|
|||||||
|
|
||||||
#if defined(POLARSSL_X509_PARSE_C) && ( !defined(POLARSSL_BIGNUM_C) || \
|
#if defined(POLARSSL_X509_PARSE_C) && ( !defined(POLARSSL_BIGNUM_C) || \
|
||||||
!defined(POLARSSL_OID_C) || !defined(POLARSSL_ASN1_PARSE_C) || \
|
!defined(POLARSSL_OID_C) || !defined(POLARSSL_ASN1_PARSE_C) || \
|
||||||
!defined(POLARSSL_RSA_C) )
|
!defined(POLARSSL_PK_C) )
|
||||||
#error "POLARSSL_X509_PARSE_C defined, but not all prerequisites"
|
#error "POLARSSL_X509_PARSE_C defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include "polarssl/config.h"
|
#include "polarssl/config.h"
|
||||||
|
|
||||||
|
#if defined(POLARSSL_PK_C)
|
||||||
|
|
||||||
#include "polarssl/pk.h"
|
#include "polarssl/pk.h"
|
||||||
#include "polarssl/pk_wrap.h"
|
#include "polarssl/pk_wrap.h"
|
||||||
|
|
||||||
@ -251,3 +253,5 @@ const char * pk_get_name( const pk_context *ctx )
|
|||||||
|
|
||||||
return( ctx->pk_info->name );
|
return( ctx->pk_info->name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* POLARSSL_PK_C */
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include "polarssl/config.h"
|
#include "polarssl/config.h"
|
||||||
|
|
||||||
|
#if defined(POLARSSL_PK_C)
|
||||||
|
|
||||||
#include "polarssl/pk_wrap.h"
|
#include "polarssl/pk_wrap.h"
|
||||||
|
|
||||||
#if defined(POLARSSL_RSA_C)
|
#if defined(POLARSSL_RSA_C)
|
||||||
@ -410,3 +412,5 @@ const pk_info_t rsa_alt_info = {
|
|||||||
rsa_alt_free_wrap,
|
rsa_alt_free_wrap,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif /* POLARSSL_PK_C */
|
||||||
|
Loading…
Reference in New Issue
Block a user