(A version of) gcc had been giving somewhat odd "trigraph" warnings about
authorGeoff Thorpe <geoff@openssl.org>
Tue, 28 Aug 2001 19:32:16 +0000 (19:32 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Tue, 28 Aug 2001 19:32:16 +0000 (19:32 +0000)
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.

ssl/ssl_ciph.c

index 752ba648ed563e97b3667928a4d9cc136db4cd09..673a198cb27d0af54185fbe6db7d257b1c523b2a 100644 (file)
@@ -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;
                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:
                        }
                break;
        default: