Callback revision.
Use "parse" and "add" for function and callback names instead of
"first" and "second".
Change arguments to callback so the extension type is unsigned int
and the buffer length is size_t. Note: this *will* break existing code.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
(cherry picked from commit de2a9e38f3)
			
			
This commit is contained in:
		@@ -548,8 +548,8 @@ static int next_proto_cb(SSL *s, unsigned char **out, unsigned char *outlen, con
 | 
			
		||||
	}
 | 
			
		||||
# endif  /* ndef OPENSSL_NO_NEXTPROTONEG */
 | 
			
		||||
 | 
			
		||||
static int serverinfo_cli_cb(SSL* s, unsigned short ext_type,
 | 
			
		||||
			     const unsigned char* in, unsigned short inlen, 
 | 
			
		||||
static int serverinfo_cli_cb(SSL* s, unsigned int ext_type,
 | 
			
		||||
			     const unsigned char* in, size_t inlen, 
 | 
			
		||||
			     int* al, void* arg)
 | 
			
		||||
	{
 | 
			
		||||
	char pem_name[100];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user