Loading apps/s_client.c +3 −1 Original line number Diff line number Diff line Loading @@ -2209,7 +2209,9 @@ static void print_stuff(BIO *bio, SSL *s, int full) if (peer != NULL) { BIO_printf(bio,"Server certificate\n"); if (!(c_showcerts && got_a_chain)) /* Redundant if we showed the whole chain */ /* Redundant if we showed the whole chain */ if (!(c_showcerts && got_a_chain)) PEM_write_bio_X509(bio,peer); X509_NAME_oneline(X509_get_subject_name(peer), buf,sizeof buf); Loading crypto/asn1/a_utctm.c +11 −8 Original line number Diff line number Diff line Loading @@ -346,13 +346,16 @@ time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s) } #undef g2 return mktime(&tm)-offset*60; /* FIXME: mktime assumes the current timezone /* * FIXME: mktime assumes the current timezone * instead of UTC, and unless we rewrite OpenSSL * in Lisp we cannot locally change the timezone * without possibly interfering with other parts * of the program. timegm, which uses UTC, is * non-standard. * Also time_t is inappropriate for general * UTC times because it may a 32 bit type. */ * UTC times because it may a 32 bit type. */ return mktime(&tm)-offset*60; } #endif crypto/bio/bss_file.c +7 −2 Original line number Diff line number Diff line Loading @@ -153,10 +153,15 @@ BIO *BIO_new_file(const char *filename, const char *mode) wmode,sizeof(wmode)/sizeof(wmode[0])) && (file=_wfopen(wfilename,wmode))==NULL && (errno==ENOENT || errno==EBADF) ) /* UTF-8 decode succeeded, but no file, filename * could still have been locale-ized... */ ) { /* * UTF-8 decode succeeded, but no file, filename * could still have been locale-ized... */ file = fopen(filename,mode); } } else if (GetLastError()==ERROR_NO_UNICODE_TRANSLATION) { file = fopen(filename,mode); Loading crypto/bio/bss_log.c +5 −2 Original line number Diff line number Diff line Loading @@ -276,8 +276,11 @@ static void xsyslog(BIO *bp, int priority, const char *string) case LOG_DEBUG: evtype = EVENTLOG_INFORMATION_TYPE; break; default: /* Should never happen, but set it as error anyway. */ default: /* * Should never happen, but set it * as error anyway. */ evtype = EVENTLOG_ERROR_TYPE; break; } Loading crypto/bn/bn.h +14 −8 Original line number Diff line number Diff line Loading @@ -257,16 +257,22 @@ extern "C" { #define BN_FLG_MALLOCED 0x01 #define BN_FLG_STATIC_DATA 0x02 #define BN_FLG_CONSTTIME 0x04 /* avoid leaking exponent information through timing, /* * avoid leaking exponent information through timing, * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, * BN_div() will call BN_div_no_branch, * BN_mod_inverse() will call BN_mod_inverse_no_branch. */ #define BN_FLG_CONSTTIME 0x04 #ifdef OPENSSL_USE_DEPRECATED #define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME /* deprecated name for the flag */ /* avoid leaking exponent information through timings * (BN_mod_exp_mont() will call BN_mod_exp_mont_consttime) */ /* deprecated name for the flag */ #define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME /* * avoid leaking exponent information through timings * (BN_mod_exp_mont() will call BN_mod_exp_mont_consttime) */ #endif #ifdef OPENSSL_USE_DEPRECATED Loading Loading
apps/s_client.c +3 −1 Original line number Diff line number Diff line Loading @@ -2209,7 +2209,9 @@ static void print_stuff(BIO *bio, SSL *s, int full) if (peer != NULL) { BIO_printf(bio,"Server certificate\n"); if (!(c_showcerts && got_a_chain)) /* Redundant if we showed the whole chain */ /* Redundant if we showed the whole chain */ if (!(c_showcerts && got_a_chain)) PEM_write_bio_X509(bio,peer); X509_NAME_oneline(X509_get_subject_name(peer), buf,sizeof buf); Loading
crypto/asn1/a_utctm.c +11 −8 Original line number Diff line number Diff line Loading @@ -346,13 +346,16 @@ time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s) } #undef g2 return mktime(&tm)-offset*60; /* FIXME: mktime assumes the current timezone /* * FIXME: mktime assumes the current timezone * instead of UTC, and unless we rewrite OpenSSL * in Lisp we cannot locally change the timezone * without possibly interfering with other parts * of the program. timegm, which uses UTC, is * non-standard. * Also time_t is inappropriate for general * UTC times because it may a 32 bit type. */ * UTC times because it may a 32 bit type. */ return mktime(&tm)-offset*60; } #endif
crypto/bio/bss_file.c +7 −2 Original line number Diff line number Diff line Loading @@ -153,10 +153,15 @@ BIO *BIO_new_file(const char *filename, const char *mode) wmode,sizeof(wmode)/sizeof(wmode[0])) && (file=_wfopen(wfilename,wmode))==NULL && (errno==ENOENT || errno==EBADF) ) /* UTF-8 decode succeeded, but no file, filename * could still have been locale-ized... */ ) { /* * UTF-8 decode succeeded, but no file, filename * could still have been locale-ized... */ file = fopen(filename,mode); } } else if (GetLastError()==ERROR_NO_UNICODE_TRANSLATION) { file = fopen(filename,mode); Loading
crypto/bio/bss_log.c +5 −2 Original line number Diff line number Diff line Loading @@ -276,8 +276,11 @@ static void xsyslog(BIO *bp, int priority, const char *string) case LOG_DEBUG: evtype = EVENTLOG_INFORMATION_TYPE; break; default: /* Should never happen, but set it as error anyway. */ default: /* * Should never happen, but set it * as error anyway. */ evtype = EVENTLOG_ERROR_TYPE; break; } Loading
crypto/bn/bn.h +14 −8 Original line number Diff line number Diff line Loading @@ -257,16 +257,22 @@ extern "C" { #define BN_FLG_MALLOCED 0x01 #define BN_FLG_STATIC_DATA 0x02 #define BN_FLG_CONSTTIME 0x04 /* avoid leaking exponent information through timing, /* * avoid leaking exponent information through timing, * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, * BN_div() will call BN_div_no_branch, * BN_mod_inverse() will call BN_mod_inverse_no_branch. */ #define BN_FLG_CONSTTIME 0x04 #ifdef OPENSSL_USE_DEPRECATED #define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME /* deprecated name for the flag */ /* avoid leaking exponent information through timings * (BN_mod_exp_mont() will call BN_mod_exp_mont_consttime) */ /* deprecated name for the flag */ #define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME /* * avoid leaking exponent information through timings * (BN_mod_exp_mont() will call BN_mod_exp_mont_consttime) */ #endif #ifdef OPENSSL_USE_DEPRECATED Loading