mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Adapt session ticket implementation to removal of peer_cert field
				
					
				
			This commit is contained in:
		
							parent
							
								
									abe6f66c00
								
							
						
					
					
						commit
						94cc26dfa6
					
				@ -292,8 +292,9 @@ static int ssl_load_session( mbedtls_ssl_session *session,
 | 
				
			|||||||
    /* Non-NULL pointer fields of `session` are meaningless
 | 
					    /* Non-NULL pointer fields of `session` are meaningless
 | 
				
			||||||
     * and potentially harmful. Zeroize them for safety. */
 | 
					     * and potentially harmful. Zeroize them for safety. */
 | 
				
			||||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
 | 
					#if defined(MBEDTLS_X509_CRT_PARSE_C)
 | 
				
			||||||
 | 
					#if defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE)
 | 
				
			||||||
    session->peer_cert = NULL;
 | 
					    session->peer_cert = NULL;
 | 
				
			||||||
#if !defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE)
 | 
					#else
 | 
				
			||||||
    session->peer_cert_digest = NULL;
 | 
					    session->peer_cert_digest = NULL;
 | 
				
			||||||
#endif /* !MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */
 | 
					#endif /* !MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */
 | 
				
			||||||
#endif /* MBEDTLS_X509_CRT_PARSE_C */
 | 
					#endif /* MBEDTLS_X509_CRT_PARSE_C */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user