diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-06-27 16:16:57 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-07-23 14:10:44 +0200 |
commit | a6975081adb6a420ae499b4df0b211c9b3f16f91 (patch) | |
tree | cd818a46b9aa8fda15f6d8781444b2a9627a5083 /lib/auth | |
parent | e04f3fa37f950f91b4280f32687e9a47b8bf5828 (diff) | |
download | gnutls-a6975081adb6a420ae499b4df0b211c9b3f16f91.tar.gz |
documentation fixes
Diffstat (limited to 'lib/auth')
-rw-r--r-- | lib/auth/cert.c | 6 | ||||
-rw-r--r-- | lib/auth/psk.c | 4 | ||||
-rw-r--r-- | lib/auth/rsa_export.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/auth/cert.c b/lib/auth/cert.c index 11e2099c2f..207f0031df 100644 --- a/lib/auth/cert.c +++ b/lib/auth/cert.c @@ -662,7 +662,7 @@ cleanup: /* Finds the appropriate certificate depending on the cA Distinguished name * advertized by the server. If none matches then returns 0 and -1 as index. - * In case of an error a negative value, is returned. + * In case of an error a negative error code, is returned. * * 20020128: added ability to select a certificate depending on the SIGN * algorithm (only in automatic mode). @@ -1811,7 +1811,7 @@ _gnutls_gen_cert_server_cert_req (gnutls_session_t session, /* This function will return the appropriate certificate to use. * Fills in the apr_cert_list, apr_cert_list_length and apr_pkey. - * The return value is a negative value on error. + * The return value is a negative error code on error. * * It is normal to return 0 with no certificates in client side. * @@ -2080,7 +2080,7 @@ _gnutls_selected_certs_set (gnutls_session_t session, * requested_algo holds the parameters required by the peer (RSA, DSA * or -1 for any). * - * Returns 0 on success and a negative value on error. The + * Returns 0 on success and a negative error code on error. The * selected certificate will be in session->internals.selected_*. * */ diff --git a/lib/auth/psk.c b/lib/auth/psk.c index a7d76638e1..358dac15aa 100644 --- a/lib/auth/psk.c +++ b/lib/auth/psk.c @@ -88,7 +88,7 @@ _gnutls_set_psk_session_key (gnutls_session_t session, /* format of the premaster secret: * (uint16_t) psk_size - * psk_size bytes of zeros + * psk_size bytes of (0)s * (uint16_t) psk_size * the psk */ @@ -107,7 +107,7 @@ error: } /* returns the username and they key for the PSK session. - * Free is non zero if they have to be freed. + * Free is non (0) if they have to be freed. */ int _gnutls_find_psk_key( gnutls_session_t session, gnutls_psk_client_credentials_t cred, gnutls_datum_t * username, gnutls_datum_t* key, int* free) diff --git a/lib/auth/rsa_export.c b/lib/auth/rsa_export.c index 6d258f395d..9e5d56f2b6 100644 --- a/lib/auth/rsa_export.c +++ b/lib/auth/rsa_export.c @@ -327,7 +327,7 @@ gen_rsa_export_server_kx (gnutls_session_t session, gnutls_buffer_st* data) return data->length; } -/* if the peer's certificate is of 512 bits or less, returns non zero. +/* if the peer's certificate is of 512 bits or less, returns non (0). */ int _gnutls_peers_cert_less_512 (gnutls_session_t session) |