mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-07 06:59:19 +01:00
Rename RSASSA_PSS_CERTIFICATES to X509_RSASSA_PSS_SUPPORT
This commit is contained in:
parent
854036956d
commit
d1539b1e88
9 changed files with 48 additions and 48 deletions
|
|
@ -137,7 +137,7 @@ int x509_get_alg( unsigned char **p, const unsigned char *end,
|
|||
return( 0 );
|
||||
}
|
||||
|
||||
#if defined(POLARSSL_RSASSA_PSS_CERTIFICATES)
|
||||
#if defined(POLARSSL_X509_RSASSA_PSS_SUPPORT)
|
||||
/*
|
||||
* HashAlgorithm ::= AlgorithmIdentifier
|
||||
*
|
||||
|
|
@ -338,7 +338,7 @@ int x509_get_rsassa_pss_params( const x509_buf *params,
|
|||
|
||||
return( 0 );
|
||||
}
|
||||
#endif /* POLARSSL_RSASSA_PSS_CERTIFICATES */
|
||||
#endif /* POLARSSL_X509_RSASSA_PSS_SUPPORT */
|
||||
|
||||
/*
|
||||
* AttributeTypeAndValue ::= SEQUENCE {
|
||||
|
|
@ -570,7 +570,7 @@ int x509_get_sig_alg( const x509_buf *sig_oid, const x509_buf *sig_params,
|
|||
if( ( ret = oid_get_sig_alg( sig_oid, md_alg, pk_alg ) ) != 0 )
|
||||
return( POLARSSL_ERR_X509_UNKNOWN_SIG_ALG + ret );
|
||||
|
||||
#if defined(POLARSSL_RSASSA_PSS_CERTIFICATES)
|
||||
#if defined(POLARSSL_X509_RSASSA_PSS_SUPPORT)
|
||||
if( *pk_alg == POLARSSL_PK_RSASSA_PSS )
|
||||
{
|
||||
pk_rsassa_pss_options *pss_opts;
|
||||
|
|
@ -854,7 +854,7 @@ int x509_sig_alg_gets( char *buf, size_t size, const x509_buf *sig_oid,
|
|||
ret = snprintf( p, n, "%s", desc );
|
||||
SAFE_SNPRINTF();
|
||||
|
||||
#if defined(POLARSSL_RSASSA_PSS_CERTIFICATES)
|
||||
#if defined(POLARSSL_X509_RSASSA_PSS_SUPPORT)
|
||||
if( pk_alg == POLARSSL_PK_RSASSA_PSS )
|
||||
{
|
||||
const pk_rsassa_pss_options *pss_opts;
|
||||
|
|
@ -875,7 +875,7 @@ int x509_sig_alg_gets( char *buf, size_t size, const x509_buf *sig_oid,
|
|||
((void) pk_alg);
|
||||
((void) md_alg);
|
||||
((void) sig_opts);
|
||||
#endif /* POLARSSL_RSASSA_PSS_CERTIFICATES */
|
||||
#endif /* POLARSSL_X509_RSASSA_PSS_SUPPORT */
|
||||
|
||||
return( (int) size - n );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -716,7 +716,7 @@ void x509_crl_free( x509_crl *crl )
|
|||
|
||||
do
|
||||
{
|
||||
#if defined(POLARSSL_RSASSA_PSS_CERTIFICATES)
|
||||
#if defined(POLARSSL_X509_RSASSA_PSS_SUPPORT)
|
||||
polarssl_free( crl_cur->sig_opts );
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -1921,7 +1921,7 @@ void x509_crt_free( x509_crt *crt )
|
|||
{
|
||||
pk_free( &cert_cur->pk );
|
||||
|
||||
#if defined(POLARSSL_RSASSA_PSS_CERTIFICATES)
|
||||
#if defined(POLARSSL_X509_RSASSA_PSS_SUPPORT)
|
||||
polarssl_free( cert_cur->sig_opts );
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -420,7 +420,7 @@ void x509_csr_free( x509_csr *csr )
|
|||
|
||||
pk_free( &csr->pk );
|
||||
|
||||
#if defined(POLARSSL_RSASSA_PSS_CERTIFICATES)
|
||||
#if defined(POLARSSL_X509_RSASSA_PSS_SUPPORT)
|
||||
polarssl_free( csr->sig_opts );
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue