diff options
| author | Paul Eggert | 2013-12-14 20:20:53 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-12-14 20:20:53 -0800 |
| commit | b4dd49e0faee3ff97b544cab2ef82898310c8999 (patch) | |
| tree | f2274915eb78730bf3abe09480d313fc16f8b731 /src/gnutls.c | |
| parent | f629af5493b01170f0fc9c26d8a51c928f4ea711 (diff) | |
| download | emacs-b4dd49e0faee3ff97b544cab2ef82898310c8999.tar.gz emacs-b4dd49e0faee3ff97b544cab2ef82898310c8999.zip | |
Use bool for boolean (GLYPH_DEBUG case).
* xdisp.c (trace_redisplay_p) [GLYPH_DEBUG]:
Use bool for boolean.
* dispextern.h (IF_DEBUG): Properly parenthesize and convert to void.
Args must now be expressions; all callers changed.
Diffstat (limited to 'src/gnutls.c')
| -rw-r--r-- | src/gnutls.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gnutls.c b/src/gnutls.c index a14d3ef31c5..dd9f30f4de9 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -825,8 +825,7 @@ one trustfile (usually a CA bundle). */) | |||
| 825 | verify_error = Fplist_get (proplist, QCgnutls_bootprop_verify_error); | 825 | verify_error = Fplist_get (proplist, QCgnutls_bootprop_verify_error); |
| 826 | prime_bits = Fplist_get (proplist, QCgnutls_bootprop_min_prime_bits); | 826 | prime_bits = Fplist_get (proplist, QCgnutls_bootprop_min_prime_bits); |
| 827 | 827 | ||
| 828 | if (!Flistp (verify_error)) | 828 | CHECK_LIST_CONS (verify_error, verify_error); |
| 829 | error ("gnutls-boot: invalid :verify_error parameter (not a list)"); | ||
| 830 | 829 | ||
| 831 | if (!STRINGP (hostname)) | 830 | if (!STRINGP (hostname)) |
| 832 | error ("gnutls-boot: invalid :hostname parameter (not a string)"); | 831 | error ("gnutls-boot: invalid :hostname parameter (not a string)"); |
| @@ -1071,8 +1070,7 @@ one trustfile (usually a CA bundle). */) | |||
| 1071 | 1070 | ||
| 1072 | if (peer_verification != 0) | 1071 | if (peer_verification != 0) |
| 1073 | { | 1072 | { |
| 1074 | if (EQ (verify_error, Qt) | 1073 | if (!NILP (Fmember (QCgnutls_bootprop_trustfiles, verify_error))) |
| 1075 | || !NILP (Fmember (QCgnutls_bootprop_trustfiles, verify_error))) | ||
| 1076 | { | 1074 | { |
| 1077 | emacs_gnutls_deinit (proc); | 1075 | emacs_gnutls_deinit (proc); |
| 1078 | error ("Certificate validation failed %s, verification code %d", | 1076 | error ("Certificate validation failed %s, verification code %d", |
| @@ -1121,8 +1119,7 @@ one trustfile (usually a CA bundle). */) | |||
| 1121 | 1119 | ||
| 1122 | if (!fn_gnutls_x509_crt_check_hostname (gnutls_verify_cert, c_hostname)) | 1120 | if (!fn_gnutls_x509_crt_check_hostname (gnutls_verify_cert, c_hostname)) |
| 1123 | { | 1121 | { |
| 1124 | if (EQ (verify_error, Qt) | 1122 | if (!NILP (Fmember (QCgnutls_bootprop_hostname, verify_error))) |
| 1125 | || !NILP (Fmember (QCgnutls_bootprop_hostname, verify_error))) | ||
| 1126 | { | 1123 | { |
| 1127 | fn_gnutls_x509_crt_deinit (gnutls_verify_cert); | 1124 | fn_gnutls_x509_crt_deinit (gnutls_verify_cert); |
| 1128 | emacs_gnutls_deinit (proc); | 1125 | emacs_gnutls_deinit (proc); |