mirror of https://github.com/openssl/openssl.git
				
				
				
			Add SSL_SESSION_set_protocol_version()
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3670)
This commit is contained in:
		
							parent
							
								
									1a993d1d56
								
							
						
					
					
						commit
						5a43d5119e
					
				|  | @ -1506,6 +1506,8 @@ __owur long SSL_SESSION_set_time(SSL_SESSION *s, long t); | |||
| __owur long SSL_SESSION_get_timeout(const SSL_SESSION *s); | ||||
| __owur long SSL_SESSION_set_timeout(SSL_SESSION *s, long t); | ||||
| __owur int SSL_SESSION_get_protocol_version(const SSL_SESSION *s); | ||||
| __owur int SSL_SESSION_set_protocol_version(SSL_SESSION *s, int version); | ||||
| 
 | ||||
| __owur const char *SSL_SESSION_get0_hostname(const SSL_SESSION *s); | ||||
| __owur const SSL_CIPHER *SSL_SESSION_get0_cipher(const SSL_SESSION *s); | ||||
| __owur int SSL_SESSION_set_cipher(SSL_SESSION *s, const SSL_CIPHER *cipher); | ||||
|  |  | |||
|  | @ -858,6 +858,12 @@ int SSL_SESSION_get_protocol_version(const SSL_SESSION *s) | |||
|     return s->ssl_version; | ||||
| } | ||||
| 
 | ||||
| int SSL_SESSION_set_protocol_version(SSL_SESSION *s, int version) | ||||
| { | ||||
|     s->ssl_version = version; | ||||
|     return 1; | ||||
| } | ||||
| 
 | ||||
| const SSL_CIPHER *SSL_SESSION_get0_cipher(const SSL_SESSION *s) | ||||
| { | ||||
|     return s->cipher; | ||||
|  |  | |||
|  | @ -458,3 +458,4 @@ SSL_CTX_set_psk_find_session_callback   458	1_1_1	EXIST::FUNCTION: | |||
| SSL_CIPHER_get_handshake_digest         459	1_1_1	EXIST::FUNCTION: | ||||
| SSL_SESSION_set1_master_key             460	1_1_1	EXIST::FUNCTION: | ||||
| SSL_SESSION_set_cipher                  461	1_1_1	EXIST::FUNCTION: | ||||
| SSL_SESSION_set_protocol_version        462	1_1_1	EXIST::FUNCTION: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue