mirror of
				https://github.com/samba-team/samba.git
				synced 2025-10-30 08:23:49 +03:00 
			
		
		
		
	r15400: Move the TLS code behind the socket interface.
This reduces caller complexity, because the TLS code is now called just like any other socket. (A new socket context is returned by the tls_init_server and tls_init_client routines). When TLS is not available, the original socket is returned. Andrew Bartlett
This commit is contained in:
		
				
					committed by
					
						 Gerald (Jerry) Carter
						Gerald (Jerry) Carter
					
				
			
			
				
	
			
			
			
						parent
						
							74bd8170fc
						
					
				
				
					commit
					09b2f30dfa
				
			| @@ -37,9 +37,9 @@ static int socket_destructor(void *ptr) | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| static NTSTATUS socket_create_with_ops(TALLOC_CTX *mem_ctx, const struct socket_ops *ops, | ||||
| 				       struct socket_context **new_sock,  | ||||
| 				       enum socket_type type, uint32_t flags) | ||||
| _PUBLIC_ NTSTATUS socket_create_with_ops(TALLOC_CTX *mem_ctx, const struct socket_ops *ops, | ||||
| 					 struct socket_context **new_sock,  | ||||
| 					 enum socket_type type, uint32_t flags) | ||||
| { | ||||
| 	NTSTATUS status; | ||||
|  | ||||
|   | ||||
| @@ -117,6 +117,9 @@ struct socket_context { | ||||
|  | ||||
|  | ||||
| /* prototypes */ | ||||
| NTSTATUS socket_create_with_ops(TALLOC_CTX *mem_ctx, const struct socket_ops *ops, | ||||
| 				struct socket_context **new_sock,  | ||||
| 				enum socket_type type, uint32_t flags); | ||||
| NTSTATUS socket_create(const char *name, enum socket_type type,  | ||||
| 		       struct socket_context **new_sock, uint32_t flags); | ||||
| NTSTATUS socket_connect(struct socket_context *sock, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user