gnutls: reorganize certificate handling
authorDan Winship <danw@gnome.org>
Tue, 17 Jul 2012 22:47:26 +0000 (18:47 -0400)
committerDan Winship <danw@gnome.org>
Wed, 18 Jul 2012 18:25:59 +0000 (14:25 -0400)
commite4e47d270eaeacef010a9ee41c8a3f1c0aabdad6
tree6a85e0817a3f5ece7c14e3a03dc0a69b395e3650
parente1a341ff46d6a741312a45ada989454f0daea0d0
gnutls: reorganize certificate handling

Move some of the code in handshake_internal() out into helper
functions, and move the code from the client and server verify_peer()
implementations into a helper function in gtlsconnection-gnutls.c as
well, to reduce duplication between them.
tls/gnutls/gtlsclientconnection-gnutls.c
tls/gnutls/gtlsconnection-gnutls.c
tls/gnutls/gtlsconnection-gnutls.h
tls/gnutls/gtlsserverconnection-gnutls.c