mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Fix dependency issues
This commit is contained in:
		
							parent
							
								
									fd862b14c5
								
							
						
					
					
						commit
						8b431fbbec
					
				@ -2725,9 +2725,12 @@ static int ssl_write_certificate_request( mbedtls_ssl_context *ssl )
 | 
			
		||||
     * opaque DistinguishedName<1..2^16-1>;
 | 
			
		||||
     */
 | 
			
		||||
    p += 2;
 | 
			
		||||
    crt = ssl->handshake->sni_ca_chain != NULL ?
 | 
			
		||||
          ssl->handshake->sni_ca_chain :
 | 
			
		||||
          ssl->conf->ca_chain;
 | 
			
		||||
#if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
 | 
			
		||||
    if( ssl->handshake->sni_ca_chain != NULL )
 | 
			
		||||
        crt = ssl->handshake->sni_ca_chain;
 | 
			
		||||
    else
 | 
			
		||||
#endif
 | 
			
		||||
        crt = ssl->conf->ca_chain;
 | 
			
		||||
 | 
			
		||||
    total_dn_size = 0;
 | 
			
		||||
    while( crt != NULL && crt->version != 0 )
 | 
			
		||||
 | 
			
		||||
@ -4032,12 +4032,14 @@ int mbedtls_ssl_parse_certificate( mbedtls_ssl_context *ssl )
 | 
			
		||||
        mbedtls_x509_crt *ca_chain;
 | 
			
		||||
        mbedtls_x509_crl *ca_crl;
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
 | 
			
		||||
        if( ssl->handshake->sni_ca_chain != NULL )
 | 
			
		||||
        {
 | 
			
		||||
            ca_chain = ssl->handshake->sni_ca_chain;
 | 
			
		||||
            ca_crl   = ssl->handshake->sni_ca_crl;
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
#endif
 | 
			
		||||
        {
 | 
			
		||||
            ca_chain = ssl->conf->ca_chain;
 | 
			
		||||
            ca_crl   = ssl->conf->ca_crl;
 | 
			
		||||
@ -6616,7 +6618,9 @@ void mbedtls_ssl_config_init( mbedtls_ssl_config *conf )
 | 
			
		||||
int mbedtls_ssl_config_defaults( mbedtls_ssl_config *conf,
 | 
			
		||||
                                 int endpoint, int transport )
 | 
			
		||||
{
 | 
			
		||||
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_SSL_SRV_C)
 | 
			
		||||
    int ret;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    conf->endpoint  = endpoint;
 | 
			
		||||
    conf->transport = transport;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user