a_gentm.c (68651) | a_gentm.c (100928) |
---|---|
1/* crypto/asn1/a_gentm.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 189 unchanged lines hidden (view full) --- 198 struct tm data; 199#endif 200 201 if (s == NULL) 202 s=M_ASN1_GENERALIZEDTIME_new(); 203 if (s == NULL) 204 return(NULL); 205 | 1/* crypto/asn1/a_gentm.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 189 unchanged lines hidden (view full) --- 198 struct tm data; 199#endif 200 201 if (s == NULL) 202 s=M_ASN1_GENERALIZEDTIME_new(); 203 if (s == NULL) 204 return(NULL); 205 |
206#if defined(THREADS) && !defined(WIN32) | 206#if defined(THREADS) && !defined(WIN32) && ! defined(_DARWIN) |
207 gmtime_r(&t,&data); /* should return &data, but doesn't on some systems, so we don't even look at the return value */ 208 ts=&data; 209#else 210 ts=gmtime(&t); 211#endif 212 p=(char *)s->data; 213 if ((p == NULL) || (s->length < 16)) 214 { --- 16 unchanged lines hidden --- | 207 gmtime_r(&t,&data); /* should return &data, but doesn't on some systems, so we don't even look at the return value */ 208 ts=&data; 209#else 210 ts=gmtime(&t); 211#endif 212 p=(char *)s->data; 213 if ((p == NULL) || (s->length < 16)) 214 { --- 16 unchanged lines hidden --- |