| 
									
										
										
										
											2001-08-18 00:36:51 +08:00
										 |  |  | =pod | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 NAME | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SSL_get_default_timeout - get default session timeout value | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 SYNOPSIS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  #include <openssl/ssl.h> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-03-30 19:50:14 +08:00
										 |  |  |  long SSL_get_default_timeout(const SSL *ssl); | 
					
						
							| 
									
										
										
										
											2001-08-18 00:36:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | =head1 DESCRIPTION | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SSL_get_default_timeout() returns the default timeout value assigned to | 
					
						
							|  |  |  | SSL_SESSION objects negotiated for the protocol valid for B<ssl>. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 NOTES | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Whenever a new session is negotiated, it is assigned a timeout value, | 
					
						
							|  |  |  | after which it will not be accepted for session reuse. If the timeout | 
					
						
							|  |  |  | value was not explicitly set using | 
					
						
							| 
									
										
										
										
											2015-08-18 03:21:33 +08:00
										 |  |  | L<SSL_CTX_set_timeout(3)>, the hardcoded default | 
					
						
							| 
									
										
										
										
											2001-08-18 00:36:51 +08:00
										 |  |  | timeout for the protocol will be used. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SSL_get_default_timeout() return this hardcoded value, which is 300 seconds | 
					
						
							| 
									
										
										
										
											2014-11-30 22:35:22 +08:00
										 |  |  | for all currently supported protocols. | 
					
						
							| 
									
										
										
										
											2001-08-18 00:36:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | =head1 RETURN VALUES | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | See description. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 SEE ALSO | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-11 16:33:09 +08:00
										 |  |  | L<ssl(7)>, | 
					
						
							| 
									
										
										
										
											2015-08-18 03:21:33 +08:00
										 |  |  | L<SSL_CTX_set_session_cache_mode(3)>, | 
					
						
							|  |  |  | L<SSL_SESSION_get_time(3)>, | 
					
						
							|  |  |  | L<SSL_CTX_flush_sessions(3)>, | 
					
						
							|  |  |  | L<SSL_get_default_timeout(3)> | 
					
						
							| 
									
										
										
										
											2001-08-18 00:36:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-18 23:44:05 +08:00
										 |  |  | =head1 COPYRIGHT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-06 21:04:44 +08:00
										 |  |  | Licensed under the Apache License 2.0 (the "License").  You may not use | 
					
						
							| 
									
										
										
										
											2016-05-18 23:44:05 +08:00
										 |  |  | this file except in compliance with the License.  You can obtain a copy | 
					
						
							|  |  |  | in the file LICENSE in the source distribution or at | 
					
						
							|  |  |  | L<https://www.openssl.org/source/license.html>. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =cut |