X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fconnection.c;h=54752aceae38a547dd80f5bcacd7e549ac459c6e;hb=e4f2d047eeb0750c7126bd6e3300cd4eab996437;hp=a473873d65800ce890be26c5ffbc27fe989593d2;hpb=988acc79a2e88342edf375f886cfd6cf098e4c9e;p=tlsproxy%2Ftlsproxy.git diff --git a/src/connection.c b/src/connection.c index a473873..54752ac 100644 --- a/src/connection.c +++ b/src/connection.c @@ -40,7 +40,8 @@ /* Format string used to send HTTP/1.0 error responses to the client. * * %s is used 5 times, first is the error code, then additional headers, next - * two are the error code (no %n$s!), the last is the message. */ + * two are the error code (no %n$s which is not in C98!), the last is the + * message. */ #define HTTP_RESPONSE_FORMAT "HTTP/1.0 %s\r\n\ Content-Type: text/html; charset=US-ASCII\r\n\ %s\r\n\ @@ -767,7 +768,7 @@ static int read_from_write_to_tls(gnutls_session_t from, size_t buffer_size) { ssize_t size_read; ssize_t size_written; - char buffer[16384]; + char buffer[16384]; /* GnuTLS default maximum */ if (buffer_size > sizeof(buffer)) { LOG(WARNING, "read_from_write_to_tls(): reduced buffer size to %ld", @@ -935,6 +936,7 @@ static void log_session_information(gnutls_session_t session) { case GNUTLS_CRD_SRP: case GNUTLS_CRD_PSK: case GNUTLS_CRD_ANON: + default: /* This shouldn't occur. */ LOG(WARNING, "unexpected authentication method: %d", cred); break;