From: Geoff Thorpe Date: Tue, 28 Aug 2001 19:32:16 +0000 (+0000) Subject: (A version of) gcc had been giving somewhat odd "trigraph" warnings about X-Git-Tag: OpenSSL_0_9_6c~123^2~47 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=4db73c1bb837f20863d916a9652d5c6f59e1df19;hp=3ae34e3a8c2e8902eb42b61a9554f4e988553fbb (A version of) gcc had been giving somewhat odd "trigraph" warnings about this construct, and Ulf provided the following insight as to why; > ANSI C compliant compilers must substitute "??)" for "]" because your > terminal might not have a "]" key if you bought it in the early 1970s. So we escape the final '?' to avoid this pathological case. --- diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index 752ba648ed..673a198cb2 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -1001,7 +1001,7 @@ char *SSL_CIPHER_description(SSL_CIPHER *cipher, char *buf, int len) case 128: enc="AES(128)"; break; case 192: enc="AES(192)"; break; case 256: enc="AES(256)"; break; - default: enc="AES(???)"; break; + default: enc="AES(??\?)"; break; } break; default: