]> git.sur5r.net Git - openldap/commitdiff
Mark a few error strings
authorKurt Zeilenga <kurt@openldap.org>
Sun, 6 Apr 2003 06:10:56 +0000 (06:10 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 6 Apr 2003 06:10:56 +0000 (06:10 +0000)
libraries/libldap/tls.c

index d093739a6d8d17c6db7d0d251ae32f2bef8bd39d..cf2604d2f5a07d1c46206dabb001bf90917402ac 100644 (file)
@@ -1102,7 +1102,8 @@ ldap_pvt_tls_check_hostname( LDAP *ld, void *s, const char *name_in )
                                "TLS: unable to get common name from peer certificate.\n",
                                0, 0, 0 );
 #endif
-                       ld->ld_error = LDAP_STRDUP("TLS: unable to get CN from peer certificate");
+                       ld->ld_error = LDAP_STRDUP(
+                               _("TLS: unable to get CN from peer certificate"));
 
                } else if (strcasecmp(name, buf)) {
 #ifdef NEW_LOGGING
@@ -1115,7 +1116,8 @@ ldap_pvt_tls_check_hostname( LDAP *ld, void *s, const char *name_in )
                                name, buf, 0 );
 #endif
                        ret = LDAP_CONNECT_ERROR;
-                       ld->ld_error = LDAP_STRDUP("TLS: hostname does not match CN in peer certificate");
+                       ld->ld_error = LDAP_STRDUP(
+                               _("TLS: hostname does not match CN in peer certificate"));
 
                } else {
                        ret = LDAP_SUCCESS;