Hello Willy,

On 03/02/2017 06:39 PM, Willy Tarreau wrote:
> Hi Nenad,
> 
> I'm getting the following warnings after I apply it. I'm running
> with openssl 1.0.1o here :
> 
> src/ssl_sock.c: In function 'ssl_sock_prepare_ctx':
> src/ssl_sock.c:3203:3: warning: passing argument 2 of 
> 'SSL_CTX_set_psk_server_callback' from incompatible pointer type [enabled by 
> default]
> In file included from src/ssl_sock.c:43:0:
> /usr/include/openssl/ssl.h:1201:6: note: expected 'unsigned int (*)(struct 
> SSL *, const char *, unsigned char *, unsigned int)' but argument is of type 
> 'int (*)(struct SSL *, char *, unsigned char *, unsigned int)'
> src/ssl_sock.c: In function 'ssl_sock_client_psk_cb':
> src/ssl_sock.c:3400:6: warning: unused variable 'ret' [-Wunused-variable]
> src/ssl_sock.c: In function 'ssl_sock_prepare_srv_ctx':
> src/ssl_sock.c:3649:3: warning: passing argument 2 of 
> 'SSL_CTX_set_psk_client_callback' from incompatible pointer type [enabled by 
> default]
> In file included from src/ssl_sock.c:43:0:
> /usr/include/openssl/ssl.h:1167:6: note: expected 'unsigned int (*)(struct 
> SSL *, const char *, char *, unsigned int,  unsigned char *, unsigned int)' 
> but argument is of type 'int (*)(struct SSL *, const char *, char *, unsigned 
> int,  unsigned char *, unsigned int)'
> 
> I have not yet investigated it. In the mean time since your commit
> message was a bit scarce, I addedd this :
> 
>    This implements "psk-file" on "bind" lines and "psk" on "server" lines.

Let's ignore this for now, I'll send a new patchset which offers adding
the lines through the socket soon anyway.

Thanks,
Nenad

> 
> Feel free to reuse this if you send another round.
> 
> Thanks,
> Willy
> 

Reply via email to