mirror of https://github.com/procxx/kepka.git
				
				
				
			Add libreSSL support
Also check LIBRESSL_VERSION_NUMBER and if it's defined, we use the LibreSSL-compatible API calls.
This commit is contained in:
		
							parent
							
								
									cc8c119b7a
								
							
						
					
					
						commit
						09f8d60e11
					
				|  | @ -30,7 +30,7 @@ using std::string; | ||||||
| 
 | 
 | ||||||
| namespace MTP { | namespace MTP { | ||||||
| namespace { | namespace { | ||||||
| #if OPENSSL_VERSION_NUMBER < 0x10100000L | #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) | ||||||
| 
 | 
 | ||||||
| // This is a key setter for compatibility with OpenSSL 1.0
 | // This is a key setter for compatibility with OpenSSL 1.0
 | ||||||
| int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) { | int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue