diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-07-24 20:02:06 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-07-24 20:02:06 +0000 |
commit | 4e29b8a8741f33767d0792930d9f0a8d9bc7741a (patch) | |
tree | ba9552fadb3ad883cae1fb9f09c84e48b5148baf /lib/gnutls_cert.c | |
parent | 96bdf382f7a0dbbc6f1f1da7f5cd3e485443f109 (diff) | |
download | gnutls-4e29b8a8741f33767d0792930d9f0a8d9bc7741a.tar.gz |
gnutls now checks the certificate's CN to see if it matches the
peer's name.
Diffstat (limited to 'lib/gnutls_cert.c')
-rw-r--r-- | lib/gnutls_cert.c | 16 |
1 files changed, 1 insertions, 15 deletions
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; |