mirror of
				https://git.proxmox.com/git/pve-http-server
				synced 2025-10-31 02:52:06 +00:00 
			
		
		
		
	constructor: split TLS flags to separate lines
easier to grasp what's actually being set.. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
		
							parent
							
								
									a0434e126e
								
							
						
					
					
						commit
						7599c47894
					
				| @ -1885,9 +1885,12 @@ sub new { | ||||
| 	    $self->{ssl}->{dh} = 'skip2048'; | ||||
| 	} | ||||
| 
 | ||||
| 	my $tls_ctx_flags = &Net::SSLeay::OP_NO_COMPRESSION | &Net::SSLeay::OP_SINGLE_ECDH_USE | | ||||
| 	    &Net::SSLeay::OP_SINGLE_DH_USE | &Net::SSLeay::OP_NO_RENEGOTIATION; | ||||
| 	if ( delete $self->{ssl}->{honor_cipher_order} ) { | ||||
| 	my $tls_ctx_flags = 0; | ||||
| 	$tls_ctx_flags |= &Net::SSLeay::OP_NO_COMPRESSION; | ||||
| 	$tls_ctx_flags |= &Net::SSLeay::OP_SINGLE_ECDH_USE; | ||||
| 	$tls_ctx_flags |= &Net::SSLeay::OP_SINGLE_DH_USE; | ||||
| 	$tls_ctx_flags |= &Net::SSLeay::OP_NO_RENEGOTIATION; | ||||
| 	if (delete $self->{ssl}->{honor_cipher_order}) { | ||||
| 	    $tls_ctx_flags |= &Net::SSLeay::OP_CIPHER_SERVER_PREFERENCE; | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Thomas Lamprecht
						Thomas Lamprecht