|
Packit Service |
4684c1 |
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
|
|
Packit Service |
4684c1 |
.TH "gnutls_rehandshake" 3 "3.6.14" "gnutls" "gnutls"
|
|
Packit Service |
4684c1 |
.SH NAME
|
|
Packit Service |
4684c1 |
gnutls_rehandshake \- API function
|
|
Packit Service |
4684c1 |
.SH SYNOPSIS
|
|
Packit Service |
4684c1 |
.B #include <gnutls/gnutls.h>
|
|
Packit Service |
4684c1 |
.sp
|
|
Packit Service |
4684c1 |
.BI "int gnutls_rehandshake(gnutls_session_t " session ");"
|
|
Packit Service |
4684c1 |
.SH ARGUMENTS
|
|
Packit Service |
4684c1 |
.IP "gnutls_session_t session" 12
|
|
Packit Service |
4684c1 |
is a \fBgnutls_session_t\fP type.
|
|
Packit Service |
4684c1 |
.SH "DESCRIPTION"
|
|
Packit Service |
4684c1 |
This function can only be called in server side, and
|
|
Packit Service |
4684c1 |
instructs a TLS 1.2 or earlier client to renegotiate
|
|
Packit Service |
4684c1 |
parameters (perform a handshake), by sending a
|
|
Packit Service |
4684c1 |
hello request message.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
If this function succeeds, the calling application
|
|
Packit Service |
4684c1 |
should call \fBgnutls_record_recv()\fP until \fBGNUTLS_E_REHANDSHAKE\fP
|
|
Packit Service |
4684c1 |
is returned to clear any pending data. If the \fBGNUTLS_E_REHANDSHAKE\fP
|
|
Packit Service |
4684c1 |
error code is not seen, then the handshake request was
|
|
Packit Service |
4684c1 |
not followed by the peer (the TLS protocol does not require
|
|
Packit Service |
4684c1 |
the client to do, and such compliance should be handled
|
|
Packit Service |
4684c1 |
by the application protocol).
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Once the \fBGNUTLS_E_REHANDSHAKE\fP error code is seen, the
|
|
Packit Service |
4684c1 |
calling application should proceed to calling
|
|
Packit Service |
4684c1 |
\fBgnutls_handshake()\fP to negotiate the new
|
|
Packit Service |
4684c1 |
parameters.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
If the client does not wish to renegotiate parameters he
|
|
Packit Service |
4684c1 |
may reply with an alert message, and in that case the return code seen
|
|
Packit Service |
4684c1 |
by subsequent \fBgnutls_record_recv()\fP will be
|
|
Packit Service |
4684c1 |
\fBGNUTLS_E_WARNING_ALERT_RECEIVED\fP with the specific alert being
|
|
Packit Service |
4684c1 |
\fBGNUTLS_A_NO_RENEGOTIATION\fP. A client may also choose to ignore
|
|
Packit Service |
4684c1 |
this request.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Under TLS 1.3 this function is equivalent to \fBgnutls_session_key_update()\fP
|
|
Packit Service |
4684c1 |
with the \fBGNUTLS_KU_PEER\fP flag. In that case subsequent calls to
|
|
Packit Service |
4684c1 |
\fBgnutls_record_recv()\fP will not return \fBGNUTLS_E_REHANDSHAKE\fP, and
|
|
Packit Service |
4684c1 |
calls to \fBgnutls_handshake()\fP in server side are a no\-op.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function always fails with \fBGNUTLS_E_INVALID_REQUEST\fP when
|
|
Packit Service |
4684c1 |
called in client side.
|
|
Packit Service |
4684c1 |
.SH "RETURNS"
|
|
Packit Service |
4684c1 |
\fBGNUTLS_E_SUCCESS\fP on success, otherwise a negative error code.
|
|
Packit Service |
4684c1 |
.SH "REPORTING BUGS"
|
|
Packit Service |
4684c1 |
Report bugs to <bugs@gnutls.org>.
|
|
Packit Service |
4684c1 |
.br
|
|
Packit Service |
4684c1 |
Home page: https://www.gnutls.org
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
.SH COPYRIGHT
|
|
Packit Service |
4684c1 |
Copyright \(co 2001- Free Software Foundation, Inc., and others.
|
|
Packit Service |
4684c1 |
.br
|
|
Packit Service |
4684c1 |
Copying and distribution of this file, with or without modification,
|
|
Packit Service |
4684c1 |
are permitted in any medium without royalty provided the copyright
|
|
Packit Service |
4684c1 |
notice and this notice are preserved.
|
|
Packit Service |
4684c1 |
.SH "SEE ALSO"
|
|
Packit Service |
4684c1 |
The full documentation for
|
|
Packit Service |
4684c1 |
.B gnutls
|
|
Packit Service |
4684c1 |
is maintained as a Texinfo manual.
|
|
Packit Service |
4684c1 |
If the /usr/share/doc/gnutls/
|
|
Packit Service |
4684c1 |
directory does not contain the HTML form visit
|
|
Packit Service |
4684c1 |
.B
|
|
Packit Service |
4684c1 |
.IP https://www.gnutls.org/manual/
|
|
Packit Service |
4684c1 |
.PP
|