Imported Upstream version 302
[ckermit.git] / ck_ssl.c
index 561e056..428fb7c 100644 (file)
--- a/ck_ssl.c
+++ b/ck_ssl.c
@@ -1,4 +1,4 @@
-char *cksslv = "SSL/TLS support, 9.0.227, 04 Aug 2020";
+char *cksslv = "SSL/TLS support, 9.0.227, 04 Aug 2010";
 /*
   C K _ S S L . C --  OpenSSL Interface for C-Kermit
 
@@ -2457,7 +2457,7 @@ ssl_get_dNSName(ssl) SSL * ssl;
             if (gen->type == GEN_DNS) {
                 if (!gen->d.ia5 || !gen->d.ia5->length)
                  break;
-                if (strlen(gen->d.ia5->data) != gen->d.ia5->length) {
+                if (strlen((char *)gen->d.ia5->data) != gen->d.ia5->length) {
                     /* Ignoring IA5String containing null character */
                     continue;
                 }
@@ -2770,7 +2770,7 @@ tls_get_SAN_objs(SSL * ssl, int type)
             if ((gen->type | V_ASN1_CONTEXT_SPECIFIC) == (type | V_ASN1_CONTEXT_SPECIFIC)) {
                 if (!gen->d.ia5 || !gen->d.ia5->length)
                  break;
-                if (strlen(gen->d.ia5->data) != gen->d.ia5->length) {
+                if (strlen((char *)gen->d.ia5->data) != gen->d.ia5->length) {
                     /* Ignoring IA5String containing null character */
                     continue;
                 }