Enable SHA256 digest support in OpenSSL
This is needed to allow X.509 certificates with SHA256 digest to be used. [Bug 323]
This commit is contained in:
		
							parent
							
								
									466940c55e
								
							
						
					
					
						commit
						e1ffdfc18b
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -735,6 +735,9 @@ void * tls_init(const struct tls_config *conf) | ||||||
| 	if (tls_openssl_ref_count == 0) { | 	if (tls_openssl_ref_count == 0) { | ||||||
| 		SSL_load_error_strings(); | 		SSL_load_error_strings(); | ||||||
| 		SSL_library_init(); | 		SSL_library_init(); | ||||||
|  | #ifndef OPENSSL_NO_SHA256 | ||||||
|  | 		EVP_add_digest(EVP_sha256()); | ||||||
|  | #endif /* OPENSSL_NO_SHA256 */ | ||||||
| 		/* TODO: if /dev/urandom is available, PRNG is seeded
 | 		/* TODO: if /dev/urandom is available, PRNG is seeded
 | ||||||
| 		 * automatically. If this is not the case, random data should | 		 * automatically. If this is not the case, random data should | ||||||
| 		 * be added here. */ | 		 * be added here. */ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Jouni Malinen
						Jouni Malinen