sys/limits.h isn't portable, how about limits.h instead?

Index: asn1/a_time_tm.c
===================================================================
RCS file: /cvs/src/lib/libssl/src/crypto/asn1/a_time_tm.c,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 a_time_tm.c
--- asn1/a_time_tm.c    5 Oct 2015 06:13:58 -0000       1.3
+++ asn1/a_time_tm.c    6 Oct 2015 11:32:22 -0000
@@ -15,11 +15,11 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */

+#include <ctype.h>
+#include <limits.h>
 #include <stdio.h>
 #include <string.h>
 #include <time.h>
-#include <ctype.h>
-#include <sys/limits.h>

 #include <openssl/asn1t.h>
 #include <openssl/err.h>

On Fri, Oct 2, 2015 at 10:04 AM, Bob Beck <[email protected]> wrote:
> CVSROOT:        /cvs
> Module name:    src
> Changes by:     [email protected]    2015/10/02 09:04:45
>
> Modified files:
>         lib/libssl/src/crypto/asn1: a_gentm.c a_time.c a_utctm.c
>                                     asn1_locl.h
>         lib/libssl/src/crypto/x509: x509_lcl.h x509_vfy.c
>         lib/libcrypto/crypto: Makefile
> Added files:
>         lib/libssl/src/crypto/asn1: a_time_tm.c
>
> Log message:
> Flense the greasy black guts of unreadble string parsing code out of three 
> areas
> in asn1 and x509 code, all dealing with an ASN1_TIME. This brings the parsing
> together in one function that converts into a struct tm. While we are at it 
> this
> also brings us into conformance with RFC 5280 for times allowed in an X509 
> cert,
> as OpenSSL is very liberal with what it allows.
> input and fixes from deraadt@ jsing@ guethther@ and others.
> ok krw@, guenther@, jsing@

Reply via email to