From 0cbd0e80bb1b4a44a11995ba3a5fd0e4757c1694 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 27 Aug 2020 13:04:11 +0200 Subject: [PATCH] Fix a couple of 'Parameters' comment sections Sponsored by: Robert Klemme --- openssl.c | 10 +++++----- ssl.c | 6 +++--- ssl_common.c | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/openssl.c b/openssl.c index 30ecfe37..67ce1ada 100644 --- a/openssl.c +++ b/openssl.c @@ -106,7 +106,7 @@ static void openssl_init(void) * or has not yet been sent by the remote end. * * Parameters : - * 1 : ssl = SSL context to test + * 1 : ssl_attr = SSL context to test * * Returns : 0 => No data are pending * >0 => Pending data length @@ -132,7 +132,7 @@ extern size_t is_ssl_pending(struct ssl_attr *ssl_attr) * connection context. * * Parameters : - * 1 : ssl = SSL context to send data to + * 1 : ssl_attr = SSL context to send data to * 2 : buf = Pointer to data to be sent * 3 : len = Length of data to be sent to the SSL context * @@ -186,7 +186,7 @@ extern int ssl_send_data(struct ssl_attr *ssl_attr, const unsigned char *buf, si * it into buffer. * * Parameters : - * 1 : ssl = SSL context to receive data from + * 1 : ssl_attr = SSL context to receive data from * 2 : buf = Pointer to buffer where data will be written * 3 : max_length = Maximum number of bytes to read * @@ -1515,7 +1515,7 @@ static int ssl_certificate_is_invalid(const char *cert_file) * 1 : cert = The certificate to modify * 2 : issuer = Issuer certificate * 3 : nid = OpenSSL NID - * 2 : data = extension value + * 4 : value = extension value * * Returns : 0 => Error while setting extensuon data * 1 => It worked @@ -1560,7 +1560,7 @@ exit: * Parameters : * 1 : cert = The certificate to modify * 2 : issuer = Issuer certificate - * 2 : hostname = The hostname to add + * 3 : hostname = The hostname to add * * Returns : 0 => Error while creating certificate. * 1 => It worked diff --git a/ssl.c b/ssl.c index 50b8f776..30b6f583 100644 --- a/ssl.c +++ b/ssl.c @@ -105,7 +105,7 @@ static int seed_rng(struct client_state *csp); * or has not yet been sent by the remote end. * * Parameters : - * 1 : ssl = SSL context to test + * 1 : ssl_attr = SSL context to test * * Returns : 0 => No data are pending * >0 => Pending data length @@ -131,7 +131,7 @@ extern size_t is_ssl_pending(struct ssl_attr *ssl_attr) * connection context. * * Parameters : - * 1 : ssl = SSL context to send data to + * 1 : ssl_attr = SSL context to send data to * 2 : buf = Pointer to data to be sent * 3 : len = Length of data to be sent to the SSL context * @@ -206,7 +206,7 @@ extern int ssl_send_data(struct ssl_attr *ssl_attr, const unsigned char *buf, si * it into buffer. * * Parameters : - * 1 : ssl = SSL context to receive data from + * 1 : ssl_attr = SSL context to receive data from * 2 : buf = Pointer to buffer where data will be written * 3 : max_length = Maximum number of bytes to read * diff --git a/ssl_common.c b/ssl_common.c index 1aa13365..7a62d413 100644 --- a/ssl_common.c +++ b/ssl_common.c @@ -91,7 +91,7 @@ extern int server_use_ssl(const struct client_state *csp) * connection, optionally delaying the operation. * * Parameters : - * 1 : ssl = SSL context to send data to + * 1 : ssl_attr = SSL context to send data to * 2 : buf = Pointer to data to be sent * 3 : len = Length of data to be sent to the SSL context * 4 : delay = Delay in milliseconds. @@ -154,7 +154,7 @@ extern int ssl_send_data_delayed(struct ssl_attr* ssl_attr, * SSL connection. Alternative to function flush_socket. * * Parameters : - * 1 : ssl = SSL context to send buffer to + * 1 : ssl_attr = SSL context to send buffer to * 2 : iob = The I/O buffer to flush, usually csp->iob. * * Returns : On success, the number of bytes send are returned (zero -- 2.39.2