tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jni/native/src sslutils.c
Date Wed, 08 Jun 2005 07:59:34 GMT
mturk       2005/06/08 00:59:34

  Modified:    jni/native/src sslutils.c
  Log:
  Fix compile time warnings for size_t->int conversion.
  
  Revision  Changes    Path
  1.23      +4 -4      jakarta-tomcat-connectors/jni/native/src/sslutils.c
  
  Index: sslutils.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/sslutils.c,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- sslutils.c	7 Jun 2005 18:22:22 -0000	1.22
  +++ sslutils.c	8 Jun 2005 07:59:34 -0000	1.23
  @@ -93,7 +93,7 @@
           EVP_read_pw_string(data->password, SSL_MAX_PASSWORD_LEN,
                              data->prompt, 0);
   #endif
  -        rv = strlen(data->password);
  +        rv = (int)strlen(data->password);
       }
       if (rv > 0) {
           /* Remove LF char if present */
  @@ -129,14 +129,14 @@
           /* Return already obtained password */
           strncpy(buf, cb_data->password, bufsiz);
           buf[bufsiz - 1] = '\0';
  -        return strlen(buf);
  +        return (int)strlen(buf);
       }
       else {
           if (SSL_password_prompt(cb_data) > 0)
               strncpy(buf, cb_data->password, bufsiz);
       }
       buf[bufsiz - 1] = '\0';
  -    return strlen(buf);
  +    return (int)strlen(buf);
   }
   
   static unsigned char dh0512_p[]={
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message