apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr-util/ldap apr_ldap_init.c
Date Fri, 30 Jul 2004 20:50:02 GMT
bnicholes    2004/07/30 13:50:02

  Modified:    ldap     apr_ldap_init.c
  Log:
  Clean up for the Novell and Netscape SDKs
  
  Revision  Changes    Path
  1.2       +6 -6      apr-util/ldap/apr_ldap_init.c
  
  Index: apr_ldap_init.c
  ===================================================================
  RCS file: /home/cvs/apr-util/ldap/apr_ldap_init.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- apr_ldap_init.c	30 Jul 2004 19:40:44 -0000	1.1
  +++ apr_ldap_init.c	30 Jul 2004 20:50:02 -0000	1.2
  @@ -50,8 +50,8 @@
   
           /* Netscape sdk only supports a cert7.db file 
            */
  -        if (st->cert_file_type == LDAP_CA_TYPE_CERT7_DB) {
  -            rc = ldapssl_client_init(st->cert_auth_file, NULL);
  +        if (cert_file_type == APR_LDAP_CA_TYPE_CERT7_DB) {
  +            rc = ldapssl_client_init(cert_auth_file, NULL);
           }
           else {
               *reason = "LDAP: Invalid certificate type: "
  @@ -68,12 +68,12 @@
   
               rc = ldapssl_client_init(NULL, NULL);
               if (LDAP_SUCCESS == rc) {
  -                if (st->cert_file_type == LDAP_CA_TYPE_BASE64) {
  -                    rc = ldapssl_add_trusted_cert(st->cert_auth_file, 
  +                if (cert_file_type == APR_LDAP_CA_TYPE_BASE64) {
  +                    rc = ldapssl_add_trusted_cert((void*)cert_auth_file, 
                                                     LDAPSSL_CERT_FILETYPE_B64);
                   }
                   else {
  -                    rc = ldapssl_add_trusted_cert(st->cert_auth_file, 
  +                    rc = ldapssl_add_trusted_cert((void*)cert_auth_file, 
                                                     LDAPSSL_CERT_FILETYPE_DER);
                   }
   
  @@ -84,7 +84,7 @@
           }
           else {
               *reason = "LDAP: Invalid certificate type: "
  -                             "DER or BASE64 type required");
  +                             "DER or BASE64 type required";
               rc = -1;
           }
   
  
  
  

Mime
View raw message