BUG/MINOR: ssl: Fix external function in order not to return a pointer on an internal...
authorEmeric Brun <ebrun@haproxy.com>
Tue, 24 Jun 2014 16:26:41 +0000 (18:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Jun 2014 20:39:16 +0000 (22:39 +0200)
commit0abf836ecb32767fa1f9ad598f3e236e073491bd
treeae5a37b3dac0dcd015f17c62009b7b8e466effb6
parent3caf2afabe89fb0ef0886cd1d8ea99ef21ec3491
BUG/MINOR: ssl: Fix external function in order not to return a pointer on an internal trash buffer.

'ssl_sock_get_common_name' applied to a connection was also renamed
'ssl_sock_get_remote_common_name'. Currently, this function is only used
with protocol PROXYv2 to retrieve the client certificate's common name.
A further usage could be to retrieve the server certificate's common name
on an outgoing connection.
include/proto/ssl_sock.h
src/connection.c
src/ssl_sock.c