From 4e29b8a8741f33767d0792930d9f0a8d9bc7741a Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 24 Jul 2001 20:02:06 +0000 Subject: gnutls now checks the certificate's CN to see if it matches the peer's name. --- lib/gnutls_cert.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'lib/gnutls_cert.c') diff --git a/lib/gnutls_cert.c b/lib/gnutls_cert.c index 81f683fdc4..91eafc9db4 100644 --- a/lib/gnutls_cert.c +++ b/lib/gnutls_cert.c @@ -221,26 +221,11 @@ gnutls_datum tmp; res->ca_list = NULL; -{FILE* fd; -fd = fopen("/tmp/aaa1", "w"); -fwrite( ptr, siz, 1, fd); -fclose(fd); - -} - - do { siz2 = _gnutls_fbase64_decode(ptr, siz, &b64); siz-=siz2; /* FIXME: this is not enough */ -{FILE* fd; -fd = fopen("/tmp/test1", "w"); -fwrite( b64, siz2, 1, fd); -fclose(fd); - -} - if (siz2 < 0) { gnutls_assert(); gnutls_free(b64); @@ -523,6 +508,7 @@ void _gnutls_int2str(int k, char* data) { * ASN.1 structure. (Taken from Fabio's samples!) * --nmav */ +#warning "Fix COUNTRY/EMAIL" static int _get_Name_type( node_asn *rasn, char *root, gnutls_DN * dn) { int k, k2, result, len; -- cgit v1.2.1