Tiny comment to improve code comprehensibility.
authorBodo Möller <bodo@openssl.org>
Fri, 9 Apr 1999 07:12:17 +0000 (07:12 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 9 Apr 1999 07:12:17 +0000 (07:12 +0000)
Submitted by:
Reviewed by:
PR:

crypto/x509/x509_vfy.c
ssl/s23_srvr.c

index 752cf4f..debefef 100644 (file)
@@ -449,7 +449,7 @@ ASN1_UTCTIME *ctm;
        X509_gmtime_adj(&atm,-offset);
 
        i=(buff1[0]-'0')*10+(buff1[1]-'0');
-       if (i < 50) i+=100;
+       if (i < 50) i+=100; /* cf. RFC 2459 */
        j=(buff2[0]-'0')*10+(buff2[1]-'0');
        if (j < 50) j+=100;
 
index a4d0f1c..bf5e112 100644 (file)
@@ -213,7 +213,7 @@ SSL *s;
                if (!ssl3_setup_buffers(s)) goto err;
 
                n=ssl23_read_bytes(s,7);
-               if (n != 7) return(n);
+               if (n != 7) return(n); /* n == -1 || n == 0 */
 
                p=s->packet;