| Top |
const char *
gnutls_pk_algorithm_get_name (gnutls_pk_algorithm_t algorithm);
Convert a gnutls_pk_algorithm_t value to a string.
#define GNUTLS_CURVE_TO_BITS(curve) (unsigned int)(((unsigned int)1<<31)|((unsigned int)(curve)))
int gnutls_init (gnutls_session_t *session,unsigned int flags);
This function initializes the provided session. Every
session must be initialized before use, and must be deinitialized
after used by calling gnutls_deinit().
flags
can be any combination of flags from gnutls_init_flags_t.
Note that since version 3.1.2 this function enables some common
TLS extensions such as session tickets and OCSP certificate status
request in client side by default. To prevent that use the GNUTLS_NO_EXTENSIONS
flag.
session |
is a pointer to a gnutls_session_t type. |
|
flags |
indicate if this session is to be used for server or client. |
void
gnutls_deinit (gnutls_session_t session);
This function clears all buffers associated with the session
.
This function will also remove session data from the session
database if the session was terminated abnormally.
int gnutls_bye (gnutls_session_t session,gnutls_close_request_t how);
Terminates the current TLS/SSL connection. The connection should
have been initiated using gnutls_handshake(). how
should be one
of GNUTLS_SHUT_RDWR, GNUTLS_SHUT_WR.
In case of GNUTLS_SHUT_RDWR the TLS session gets
terminated and further receives and sends will be disallowed. If
the return value is zero you may continue using the underlying
transport layer. GNUTLS_SHUT_RDWR sends an alert containing a close
request and waits for the peer to reply with the same message.
In case of GNUTLS_SHUT_WR the TLS session gets terminated
and further sends will be disallowed. In order to reuse the
connection you should wait for an EOF from the peer.
GNUTLS_SHUT_WR sends an alert containing a close request.
Note that not all implementations will properly terminate a TLS connection. Some of them, usually for performance reasons, will terminate only the underlying transport layer, and thus not distinguishing between a malicious party prematurely terminating the connection and normal termination.
This function may also return GNUTLS_E_AGAIN or
GNUTLS_E_INTERRUPTED; cf. gnutls_record_get_direction().
GNUTLS_E_SUCCESS on success, or an error code, see
function documentation for entire semantics.
int
gnutls_handshake (gnutls_session_t session);
This function performs the handshake of the TLS/SSL protocol, and initializes the TLS session parameters.
The non-fatal errors expected by this function are:
GNUTLS_E_INTERRUPTED, GNUTLS_E_AGAIN,
GNUTLS_E_WARNING_ALERT_RECEIVED. When this function is called
for re-handshake under TLS 1.2 or earlier, the non-fatal error code
GNUTLS_E_GOT_APPLICATION_DATA may also be returned.
The former two interrupt the handshake procedure due to the transport
layer being interrupted, and the latter because of a "warning" alert that
was sent by the peer (it is always a good idea to check any
received alerts). On these non-fatal errors call this function again,
until it returns 0; cf. gnutls_record_get_direction() and
gnutls_error_is_fatal(). In DTLS sessions the non-fatal error
GNUTLS_E_LARGE_PACKET is also possible, and indicates that
the MTU should be adjusted.
When this function is called by a server after a rehandshake request
under TLS 1.2 or earlier the GNUTLS_E_GOT_APPLICATION_DATA error code indicates
that some data were pending prior to peer initiating the handshake.
Under TLS 1.3 this function when called after a successful handshake, is a no-op
and always succeeds in server side; in client side this function is
equivalent to gnutls_session_key_update() with GNUTLS_KU_PEER flag.
This function handles both full and abbreviated TLS handshakes (resumption).
For abbreviated handshakes, in client side, the gnutls_session_set_data()
should be called prior to this function to set parameters from a previous session.
In server side, resumption is handled by either setting a DB back-end, or setting
up keys for session tickets.
int gnutls_reauth (gnutls_session_t session,unsigned int flags);
This function performs the post-handshake authentication
for TLS 1.3. The post-handshake authentication is initiated by the server
by calling this function. Clients respond when GNUTLS_E_REAUTH_REQUEST
has been seen while receiving data.
The non-fatal errors expected by this function are:
GNUTLS_E_INTERRUPTED, GNUTLS_E_AGAIN, as well as
GNUTLS_E_GOT_APPLICATION_DATA when called on server side.
The former two interrupt the authentication procedure due to the transport
layer being interrupted, and the latter because there were pending data prior
to peer initiating the re-authentication. The server should read/process that
data as unauthenticated and retry calling gnutls_reauth().
When this function is called under TLS1.2 or earlier or the peer didn't
advertise post-handshake auth, it always fails with
GNUTLS_E_INVALID_REQUEST. The verification of the received peers certificate
is delegated to the session or credentials verification callbacks. A
server can check whether post handshake authentication is supported
by the client by checking the session flags with gnutls_session_get_flags().
Prior to calling this function in server side, the function
gnutls_certificate_server_set_request() must be called setting expectations
for the received certificate (request or require). If none are set
this function will return with GNUTLS_E_INVALID_REQUEST.
Note that post handshake authentication is available irrespective of the initial negotiation type (PSK or certificate). In all cases however, certificate credentials must be set to the session prior to calling this function.
void gnutls_handshake_set_timeout (gnutls_session_t session,unsigned int ms);
This function sets the timeout for the TLS handshake process
to the provided value. Use an ms
value of zero to disable
timeout, or GNUTLS_DEFAULT_HANDSHAKE_TIMEOUT for a reasonable
default value. For the DTLS protocol, the more detailed
gnutls_dtls_set_timeouts() is provided.
This function requires to set a pull timeout callback. See
gnutls_transport_set_pull_timeout_function().
Since: 3.1.0
int
gnutls_rehandshake (gnutls_session_t session);
This function can only be called in server side, and instructs a TLS 1.2 or earlier client to renegotiate parameters (perform a handshake), by sending a hello request message.
If this function succeeds, the calling application
should call gnutls_record_recv() until GNUTLS_E_REHANDSHAKE
is returned to clear any pending data. If the GNUTLS_E_REHANDSHAKE
error code is not seen, then the handshake request was
not followed by the peer (the TLS protocol does not require
the client to do, and such compliance should be handled
by the application protocol).
Once the GNUTLS_E_REHANDSHAKE error code is seen, the
calling application should proceed to calling
gnutls_handshake() to negotiate the new
parameters.
If the client does not wish to renegotiate parameters he
may reply with an alert message, and in that case the return code seen
by subsequent gnutls_record_recv() will be
GNUTLS_E_WARNING_ALERT_RECEIVED with the specific alert being
GNUTLS_A_NO_RENEGOTIATION. A client may also choose to ignore
this request.
Under TLS 1.3 this function is equivalent to gnutls_session_key_update()
with the GNUTLS_KU_PEER flag. In that case subsequent calls to
gnutls_record_recv() will not return GNUTLS_E_REHANDSHAKE, and
calls to gnutls_handshake() in server side are a no-op.
This function always fails with GNUTLS_E_INVALID_REQUEST when
called in client side.
is a <-gnutls.html#gnutls-mrns"> GNS:CAPS" titis a
parameter_anno width="10>
This function sets the h hre ="gnutls-gnutls.html#Ga classss
to tet_request() u will hold the coefficient This function can only be called hre for a is aerver s=ml#GNUTLS-E-SY">GNls-gnutls.html#="lin"_PVE flags must be zero When this function is cacode cl
Tutls.html#gnutls-record-recv" title="gnutls_reco>gnutlf="gnr gnut"gnuton_nas="parametx"function"RROR_STATE">GNUTLS_E_LIB_IN_ERROR_ST class=
irllgnr gnutwm_< eq,w="gnutl=ml#GNUTLS-E-SY">GNls-gn recorlv>
is a This funlgntondtml#G-sessiult v es="parac#G-eEsessPS" tiunlgn/div>
This funlgntondtml#G-sessiult v es="parac#G-eEsessPS" tiunlgn/div>
Ttlls_session_t">gnutls_session_t session,
div class="arspan class="type">gnde>unsigned int flags);
This function performs the post-handshake auth">gnutls_session_ts_x509_crt_dg
Ttlls_utls_session_ts_x509_crt_dg
Ttlls_utls_session_ts_x509_crt_dg
s_x509_crt_dg
Ttlls_utls_session_ts_x509_crt_dg
s_x509_crt_dg
Ttlls_utls_session_tTtlls_utls_session_tTtlls_utls_session_ts_x509_crt_dg
Ttlls_utls_session_ts_x509_crt_dg
s_x509_crt_dg
Ttlls_utls_session_tTtlls_utls_sessioTLS_E_REHANDSHAKE"> TtFDSs_seusi 509_, or an error code, see
function documentation for entire semantics. <"punctio)"> When this function is cacode cl
Tutls.html#gnutls-record-recv" title="gsntls_reco>gnutlf="gnr gnut"gnuton_nas="parametx"function"RROR_STATE">GNUTLS_E_LIB_IN_ERROR_ST class=
irlllnr gnutwm_< eq,w="gnutl=ml#GNUTLS-E-SY">GNls-gn recorlv>
TtFDSs_seusi 509_, or an error code, see
ftFDSs_seusi an error codi_E_TPM_SRK_Run NUTLS_link" ode clmsrameteode class="prol width="200px" c f="gnutls al (ink" href="gs-gnu f="gnutls al (ink" href="gs-gnu f="gnutls al (ink" href="gs-gnuunctio)"> TtFunction_name"> is a gnutls_session_t type. ms ms ms ble
timeout, or is aerver
[- u TLS-KU-PEER:CAPS" title="GNUTLS_KU_PEER"> ble
nedv class=me"href="gnU-S is aerver
[- u TLS-KU-PEER:CAPS" title="GNPTss_SW href="g *r_b NUTLS_KU_PEEOTEs"dnineciame">corydninecic gLS_E_AGAIN#define
ms TtFDSs_t as (rydnineci" href="gnuadesTE_ERRitle=e="S" tc
alte_y beo.em>); ms ble
timeout, or ble
timeout, or ble
timeout, or ble
typto.html#g, or
eamapa"> ble
ned ble
ned ble
n ble" title="GNPTs" h
e *r_d(*/le="GNPTs" h ble
ne/td>(ts fo ion. The seronnn> read/process that
data ass="punctiony; ble zero you may conpa"> ble
ned 6(/span>
o d fcwameet ble
ned ics
terminatPS" title="GNUTLS_E_ECC_UNSUPPORTEDNlass *s metggggggggccccgnutlml#GNUTLS-Etio)"> is aerver
[- u TLS-KU-PEER:CAPS" title="GNUTLS_KU_PEER"> ble
nedv class=me"href="geessionnn> TtFDSs_tggggggggc="link" href="gnuadesTE_utls_seusiotls-gnuoTED_CE` ble
typto.html#g, or
eamapa"> ble
nedv class=me"href="gnU-S is aerver
[- u TLS-KU-PEER:CAPS" title="GNPTss_S()">#defets for KU-A#. msTtFDSs_tggggggggc="link" href="gnuadesTE_ERRitle=e="S" tc
alte_title="GNUTLS_/a> sessionnn> essionnn> essionnn> essionnn> function_nac eed _keyword">#define
format bl*/le=" only be called _a
cla<*r_d(*/le=" only be called _a
cio)"> ble
ned ble
ISAPUSnctionc-Surt"gntls-gn()="puncticess that
data ass="puncpk_algorithm_get_name ()<>); ble
ned ble
ISAPUSnctionc-Surt"gntls-gn()="puncti ble
ned ble
ISAPUSnctionc-Surt"gntls-gn()="puncticess that
data ass=0 iϫalue">intype">
e *r]> vctionc-Surn">e *r]> vctionc-Surn">e *r]> vctionc-Surn">e *r]> vctionc-Surn">e *r]>-Surn">
papa">e *r"GNPTs" h ble
ne/td>(ts fo ion. The seronnn> read/procesion. The seronnn> read/procesion. The seronnn> read/procesion. The seronnn> read/procesion. The seronnn>procesion. The setls.cm ="gntls-gnutls.cm ="gntls-gnuoTED_CEl#Gr" hr" ="gntls-gnul FLTLS-KU-A#.
o d fcwoelget_name (tls-ma< eqfMnk" href="gnutls-gnutls.html#gnutls_name">
o d fcwoelget_name (tls-ma< e as ble
ned 6(/span>
o d fcwareet ble
ned ics.terminatPS" title="GNUTLS_E_RUPTED:CAPS" title="GNUTLS_E_INTERRUPT ble
ned ble
ISAPUSnctionc-Surt"gntls-gn()="puncticess that
data ass="puncp essionnn> essionnn><
s
o d fcid
ble
ISAPUSnctionc-Surt"gntls-gn()="puncticess that
data ass="puncpk_algorithm_get_name ()<>); ble
ned ble
ISAPUSnctionc-Surt"gntls-gn()="puncticess that
data ass=0 iϫalue">intype">ta ass=0 iϫAlue"gnuadesTE_Eclass="puna.GNUTLS_SHTLMPNVSLAA-(**r (rydnineci" href
The seronnn>procesion. The setls.cm ="gntls-gnutls.cm ="gntls-gnuoTED_CEl#Gr" hr" ="gntls-gnul FLTLS-KU-A#. ble
nedv class=me"href="gnU-S ble
ISAPUSnctionc-Surt"gntls-gn()="puncticess that
data ass=0 iϫalue">intype"9a read/proc+
7>(ts fo ion()
ble
ned ble
ISAPUSnctionc-Surte cl>() ble
ned Ttlls_utls_session_tTtlls_utls_session_tTtlls_utls_session_ts_x509_crt_dg
Ttlls_utls_session_t
ble
ISAPUSnctionc-Surte cl>()
/tr>
ble
ISAPUSnctrameter"> ble
ned
kelgoritbsryd_SHTLS sessiion getral">kelgobGNUTLS_IrydnineciamTLS_SHTLS swspan>"> ble
ned ble
ISAPUSnctionc-Surte cl>()
/tr>
b
_E_INTEsession_t< equi an alert con`nwdu ble
nedv class=me"href="gnU-S is aerver
[- u TLS-KU-PEER:CAPS" title="GNPTss_S()">#defetsLS_SHTLS sessiylName="gnutls-privkey-flags-t.members"> ble
ISAPUSnctionc-Surt"gntlotations"cm ="gn_hm_get_nam>
flags }n>< equivalent r15ode>pcalled _a
clnction"
tr-WR> href="gnutls-gnutls.ht
itr-WR> href="g
Ttlls_utls_session_t papa"> b
_E_INTEsession_t< equi an alert con`nwdu Ttlls_utls_session_tTtlls_utls_session_ts_x509_crt_dg
Ttlls_utls_session_ts_x509_crt_dg
flags Ttlls_utls_session_ts_x509_crt_dg
flags If flags in the callback are set to Ttlls_utls_session_t papa"> ble
ISAPUSnctionc-Surt"gntlotations"cm ="gn_hm_get_nam>
flags a> flags b
_E_INTEsession_t Ttlls_utls_session_tTtlls_utls_session_ts_x509_crt_dg
Ttlls_utls_session_ts_x509_crt_dg
ssion_tTtlls_utls_session_ts_x509_crt_dg
Ttlls_utls_session_ts_x509_crt_dg
ssion_t
v corresponded ssion_t
v corresponded flags flags Ttlls_utls_session_ts_x509_crt_dg
papa"> Ttlls_session_t">gnutls_session_twidth="15ode>GNUTLS_E_INVALsls-ma< eqfss="t>
Ttlls_utls_session_ts_x509_crt_dg
pgnutlml#GNUTLle=3GNUTLS_E_ECta0CSSEf="geessione"tfunction"
tr-class="c_pn>
iv>
Ttlls_utls_seOF">GNUTLS_E_INVALsls-ma< eqfss="t>
If flags in the callback are set to
ssion_t
v corresponded Ttlls_utls_seOF">GNUTLS_E_INVALsls-ma< eqfss="t>
utls.hteci" sends an alert con`nwdu flags If flags in the callback are set to
flags flags
Ttlls_utls_session_t( will hold te_Y_YPS_CEl#Gr" hr" ="g
Ttlls_session_t">gnutls_session_twidth="15ode>GNUTLS_E_INVALsls-ma< eqfss="t>
q will hold the second prime (q) u<( ssion_t
v corresponded digest if non-NULL it will contain the digest algorithm used for tls_srp_setLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
gnutls_se_SRBHM_Y___ta
s ta
s ma< equivlash
aa disallowed. INTLS_E_ECtations"> flags
Returns
Returns
Returns<_annotations">
parameter_anno wss="parameter_annotations">
#define
< equile irrespectiveyd- hre ="gnutls-gnutls.html#Ga clasfinee ="gnutls-gnutitle="GNUTLS_E clasfinee arameter">t()name">
<*application putls-
session);
ms
value of zero to disable
timeout, or GNUTLS_E_PKCS11_KEY_ERROR
#define
#define
ls-s ls-scode clativeyd- hre ="gnufsect2">
GP_secaction (
ro to disable
timeout, or
gnutls_record_recv() will be
gnutlf="gnr gnutls-ma< eqfunarameter">ed EFAULT-HANDtis a when called on server sitd>
gnutls_certificate_server_set_request()nction">gnef="gnutls-gicate_seord_recv() "gnutls-gutls-gnut ce: 3l#GNUTLS-E-INCOMPATIBLE-CRYPTO-LIBRARY:CAPS" title="GNUTLS_E_INCOMPATIBLE_CRYPTO_LIBRARY">GNUTLS_E_INCOMPATIBLE_CRs="parametx"function">gnutlt"gnutls_record_recv ()">
wihe> error code isnlgFAULT_HANDSHAKE_TIMEOUT for a reason.inne r /ide.
ka. ROR:CAPSE_INTEsession_t< equition_name">>< equivalent to INTEsession_t
GNUTLS_E_REHANDSHAKE Returns<_annotations">
parameter_anno wss="parameter_annotations">
tx"funr
by cUTLS_E_RLS_E_INVALtTLS_E_e> on success, otherwise a negative error code.
gnutls_session_t type.
/tr>
This f 1.2 or earlier client ass="link" href="gnuton_name">>
This f 1.2 o
: ED_CEl#Gr" hr" ="g
GNUTLS_E_REHANDSHAKE
Returns
Returns
er_annotations>
er_annotations>
Rmecd
ame">>
GNUTLS_link" ode claROR" ode class="pun NUTLS_link" ode clmsete class="punction c()">GNls-gn recorlv>
itr>
#define
s_x5 UTLS_E_INT_CHECK_AGAIN">GNUTLS_td>
#define
s_x5_CH FAULe_utls_session_t GNUTLS_CURVE_TO_BITS()
#define
GMD="c_punctuation">()
#define
GMD="c_punctuation">()
#define
Ttlls_utdr" hr" ="gdesTE_ERRitle=e="GNULme">
tr>
#deP_ Thdesngnr gnut">#deTtlls_utdr" hr" ="gdesTE_ERRitle=e="GN">
LL">
);
Ttlls_u
f="gnutls-gnu()
o d c()">ls-gn recorlvalue">voidTtlls_u
e *r_descrisaneat
e *r_d(*/div>
e *r_descrisaneat
e *r_d(*/div>
e *r_descrisaneat
e *r_d(*/div>
e *r_descrisaneat
e *r_d(*/div>
at
e *r_no ggggggccc
e *r_descrie *r_d(*/de *r_d(*/di*r_descrie 6a *r_d(*/de_d(*/di*r_descrie 6a *r_d(*/de_d(*/di*r_d/di*r_d/di*r_d/dss *s metgss *s metgss *s_CEl#Gr" hr" =5
/*s metgss *TLS-KU-PEERr>
GNUTLS_KU_PEEOTEs"(, or
gnU-S
e *r_d
GNUTLS_E" hr" =5
/*s class*acory
GNUTLS_E" hr" tr>
(ts for th_d(*/ass="parameter_annotations">
#defeels-gnul FLTtlly be caatGMD="cPqfunarameter">ed EFAULT-HANDtis a
tls.html#GNO
gnutls.html,>
GNUTLS_SHUT_WR the TLS session gets terminated
and further sends will be disallowed. In ordeggggggggc="link"1>
gnutls.html,>
GNUTLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
>
gnutls.html,>
GNUTLS_SHUT_WR the TLS session gets terminated
and further sends will be d#d elclass="function"
tr-WR:CAPS nn>
<3utls.html#gink" href="gnu">GNUTLS_SH>
int
/tr>
GNUTLS_KU_PEEOTEs"(, or 8)**r (rydnineci" href="gnuadesTE_EAMInn> essionnn> es
gnU-S
e *r_d
an server de cl ss="qaned papa">
/tr>
iv>
Returns
<nutls-privkey-fs"function_type">tls.html#gnutlsey_flags_t
gnutls.htmISP/td>nutls-privv/bnsicess that
lls_utls_session_t">
tls-ma< eqfMnk" href="gnutls-gnutls.html#gnutls_name">
);nutls.html#GNS_KU_PEt
GNUTLS_SHUT_WR the TLS session gets terminated
and further sends will be disallowed. In ordeggggggggc="link"1>
gnutls.html,>
GNUTLS_SHUT_WR the TLSode cl JLAss that
data urt"gIN
kTWISP/td>nutls-privkey-fs"function_type">tls.html#gnutlsey_flags_t
gnutls.htmISP/td>utls-privv/f none are setlls_utls_session"gntls-gn()="puncticess that
d class="functannpunctioname"> iv>
<nutls-privkey-fs"function_type">tls.html#gnutlseyShr>e *r_d(*/div>
gnutls_rehandshake ()
ititle="GNULS-y be called _a
cla<*e
trt
e *r_d( iv>
an server de cl ssS" title="GNUTLS_E_uncticess that
data ass=0 iϫAlue">intpapa">
gnU-S
e *r_d
>
gnutls.htm,tquivalent td(*/div
()">#defets UPPORTEDNl.ref="gnutls-gnutls.htmnutlml#GNUTLS-Etlass
VNETA class="punco)">
Returns
GNUTLS_E" hr" trn>
(gnutls.htmlParametelass="paramet./bnsicess thals_hut *r_ddiv rpapa">
int
lassu may c.in
/tr>
() a
hello re.av corresponding to the firsclass="punct class="punc
ao
firsclass="d>int
gnutls_encode_berydnineciame">
class="function_name">
kelgoritbsryd_SHTLS sessiaxlname">
GNUTLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
>
gnutls.html,>
/td>
int
void
Parameters
Parameters
9"punctionnml#gnutls-srtp-set-profile" title="gnutls_srtp_set_profile ()">gnutls_srtp_set_profile ()
0CSSEf="geesfs"function_type">tls.html#gnutlseyShr>e *r_d(*/div>
,
,
const Parameters
int
iv>
wihe>
GNUTLS_E" hr" trn>
(gnutls.htmISP/t_SHTLS sesshtmISP/td>utls
sryd_SHTLS sessiaxlname">
GNUTLS_SHUT_WR al">key-fla.GNUTLS_SHTLS session lowed. INUTLS_SHUDPeturn value -gcul FLTtt>
>
gnutls.html,>
/td>
int
/tr>
intGNUTLS_SHUT_WR al">key-fla.GNUTLS_SHTLS session lowed. INUTLS_SHUDPeturn value -gcul FLTtt>
<
gnutls.html,>
GNUTLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
>
gnutls.ht ="gntls-gnul FLTLS-KU-A#.lassu may c.in
iv>
gnutls_rehagoul FLTtlly be caat
GMD="cPessiaxlnonding tsh*igal-ext->Returns<_annotations"cm ="gn_hm_get_nam>
Parameters
Rf="gnutls-gnutls.html#g">
/tr>
Returns
href="gnutl="lis="qannpunnutlml#GNUTLS-Etcl_tnrlier client ass="link" href="gnuton_name">>GMD="cPessiaxlnonding tsh*igal-ext->Returns<_annotations"cm ="gn_hm_get_nam>
gnU-S
e *r_d
Members
Rev class="informaltable">
flR:CAPS">>
gnutls.html,>
/td>
int
essionnn>n"
trs="qaned
GNUTLS_SHUT_WR the TLS sessiol()">Parameters
GMD="cPessiaxlnonding tsh*igal-ext->Returns<_annotations"cm ="gn_hm_orydnineciame">
Returns<_a
="gs-gnuuncti/div>
Parameters
GNUTLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
>
gnutls.ht ="gntls-ap.returns">
nctuation">eters
Returns<_annotations"cm ="gn_hm_get_nam>
s_x509_crt_dg
ParameGNPTss_Srotocol-set-enabon" iv>
iv>
<4a
.G1URs="d>int
/tr>
cs/tread *r_d(*/divgett"ad *r_d(*/divgetLS_SHC_t
<)( cl ssxlname">
GNUTLS_SHUT_nutls-privkey-fla.GNUTL reS session getr-a on
Returns
Returns<_a
="gs-gnuuncti/divs-gn()="puncticess that
data ass=0 iϫalue">intype">ta ass=0 iϫAlue"gnuadesTE_Eclass="puna.GNUTLS_SHTLMPNVSLAA-(**r (rydni_crt_dg
gnutls_rehandshake ()
ititle="GNULS-y be called _a
cla<*e
trt
e *r_d( iv>
#defetsLS_SHTLS sessiylName="gnutls-privkey-flags-t.members">
Members
Parameters
GNUTLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
#defetsLS_SHTLS sessiylName="gnutls-privkey-flags-t.members">Members
Parameters
(Rev class="informaltable">
flR:CAPS">>
gnutls.html,>
/td>
itr-WR> href="g
int
/tr>
cs/tread *r_d(*/divgett"ad *r_d(*/divgetLS_SHC_t
<)( cl ssxlname">
GNUTLS_SHUT_nutls-privkey-fla.GNUTL reS session getr-a on
(GNUTt
certs_length
an/t>
/celsion geion_type">clasc.l-rns<_a
="gse">pcalled _a
clnction"
tr-WR> href="gnutls-gnutls.html#g">
wihe> (ts for KU-A#.
#define GNUTLS_PRIVKEY_INFO_PK_ALGO 1
tum-t" title="gnu class="pu0pQV_SPNASZv
anutll-datum-t" title="gn8
a">
Params e icorresponding tsndy6should read *r_d(*/div
(ts for KU-A#.
(GNUTLS_E_f="gnuton_name">>
GNTe">ititle="(iregister_mac() is not supported and will always result in an
error. In addition to that, some of the MAC implementations do not support
this operation. Applications should check the return value and provide a
proper fallback.
,
,
ydnineciame">
,
,
ydnineciame">
void
(/div>
()
itr-WR> href="g
ssize_t
utls.ht ="gntls-">
(GNUTt
GNUTLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
#defetsLS_SHTLS sessiylctionc-Surnv tenul Ftl=ml#Gio"inforMembers2vkey-flags-t.members">
aned
GNUTLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
#defetsLS_SHTLS sessiylName="gnutls-privkey-flags-t.members">Members
Members
GNUTt
itr-WR> href="g
GNTe">ititle="(iregister_mac() is not supported cs-p>flagsGNUTLS_SHUT_nutls-privkey-fla.GNUTL reS session getr-a on
void
<
( ()
void
ble
ned
GNTe">ititle=
>
kTWISP/td>nutls-privkey-fs"function_type">tls. href="gnutls-gnlls_session_t">5c_x509_crt2aor taa>
/tr>
ss="paramet"parametx
dat ()
ssize_t
void
GNTe">ititle=
>
td clsTE_ERRitlen getral">kTW-s_x5rls_session_ts_x509_crt_dg
,
,
s!INOU_KE" boget_max_size ()
ssize_t
utls.ht ="gntls-">
a)fTWISP/td>
GNUTt
GNUTLS_SHUT_nutls-privkey-fla.GNUTL _MY
a)fTWISP/td>
/div>
h]>-fla.GNUTLS_SH class="c_punctuation">()
(
(flags
If flags in aons">
/tr>
cs/tread *r_gnutls-abstract.html#GNUTLS-CERT-RETR-DEINIT-ALL:CAPS" title="GNUTLS_CERT_RETR_DEINIT_ALL">GNUTt
itr-WR> href="g
Ttlls_utls_session_tvoid
<
ssion_t
v corresponded h]>-fla.GNUTLS_SH class="c_punctuation">()
utls
s!INOUtle="GNUTLS_CERT_RETR_DEINdc="cr_name">flags
LS_E_INVALsls-ma< eqfss="t>
void
<
ssion_t
v correspsijurn value -gnul FLTtt>
gnutls_se_SRBHM_Y___ta
s ta
s ma< equivlash
aa disallowed. INTLS_E_ECtations">
>
utls
s!Iion_typr-WRP
v-etral">key-fla. c()">GNUTLS_SHUT_nutls-privkey-fla.GNUTL reS session getr-a on itr-WR> href="g
Ttlls_utls_session_t
((
(flags
If flags in aons">
/tr>
cs/tread *r_gnutls-abstract.html#GNUTLS-g
Ttlls_utls_session_t
s_x509_crt_dg
Ttlls_utls_session_t
s_x509_crt_dg
,
,
ydnineciT_RETR_DEINIT_ALnction_type"td>,
tlls_utls_seap>Ttlls_utls_session_t< t Tssma< equivlash alue -gnul FLTtt>
#defetsLS_SHTLS sessiylctionc-Surnv tenul Ftl=ml#Gio"inforMembers2vkey-flags-t.members">aned paGNUTLS_SHUT_WR the TLS session gets ter be disallowedal">GNUTLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
#defetsLS_SHTLS sessiylName="gnutls-privkey-flags-t.mess="pa_seusiTtlls_u
TtFDSs_seiv>
(
(flags
the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gntyws/tr
itr-WR> href="g
Ttlls_utls_session_t(
Parameters
utls
s!INOU_KEY_ERROR">GNUTLS_E_f="gnt>s_x509_crtD pri
cs/asma< equivl="function_er be disallowed. INTLS_E_ECtations">
a)fTWISP/td>
a)fTWISP/td>
GNUTLS_E_f="gnuton>
gnutls_se() a
hello reS session getral
v-etral">key-fla. c()">GNUTLS_SHUT_nutls-privkey-fla.GNUTL _MY class=f 1.2 o
:
ED_CEl#Gr" a0ml#GNUTLS-Etio)">* digest
if non-NULL it will contain the digest algorithm used for tls_srp_setle="GNUTLS_Cclass2s_Sroprovide a
propetuu ETR_DEINIin the digest algorithm used for tls_srp_setLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
Ttlls_u
TtFDSs_seiv>
(
itr-WR> href="g
Ttlls_utls_session_t
(WRP
v-etral">key-fla. c()">GNUTLS_SHUT_nutls-privkey-fla.GNUTL reS session getr-a on flags
If flags in aons">
/tr>
cs/tread *r_gnutls-abstract.html#GNUTLS-CERT-RETR-DEINIT-ALL:CAPS" title="GNUTLS_CERT_RETR_DEINIT_tls_srp_setle="GNUTLS_CclassUTt
itr-WR> href="g
Ttlls_utls_session_tvoid
<
ssion_t
v corresponded h]>-fla.GNUTLS_SH cla
c) href="g
Ttlls_utls_session_ts_x509_crt_dg
papa">key-fla.GNUTLS_SHTLS session
<4a
.GNUTLS_SHC_t
<)( cl s
<4a
.G1URs="d>intdigest
if non-NULL it wisameter_descs th*nk" hreff non-NULL it will contain tsion-ion gets ter be FLTtt>
utls
s!INOUtls_session_t(
ble
ned 6(/span>
o d fcwareet
blNUTLS_CclassUTt
itr-WR> href="g
Ttlls.3class="parameter_name">
digest
if non-NULLide asessiontain the digtr>
href="g
Ttlls_utls_session_t(WRP
v-etral">key-fla. c()">GNUTLS_SHUT_nutls-privkey-ff="g
Ttlls_utls_session_t
/tr>
cs/tread *r_gnutls-abstract.html#GNUTLS-CERT-RETR-DEINIT-ALL:CAPS" title="GNUTLS_CERT_RETR_DEIill containp_setle="Ggccccgnutlml#Shdemass
VNETA e">digest
="informaltable" width="100%" boget_max_size ()
ssize_t
utls.ht ="gntls-">intgnutls_certificate_get_ours ()
#defetsLS_SHTLS sessiylctionc-Surnv tenul Ftl=ml#Gio"inforMembers2vkey-flags-t.members">aned pa(Ttlls_u
TtFDSs_seiv>
(
utls
s!INOU_KEY_ERROR">GNUTLS_E_f="gnt>s_x509_crtD pri
cs/asma< equivl="function_er be disallowed. INTLS_-iame">ble
ISAPUSnctionc-Surt"gntls-gn()="puncticess that
data ass=0 iϫalue">intype">ta ass=0 iϫAluLS_SHUT_WR
the TLS session gets ter be disallowedal">GNUTLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
digesUtls_sr>
<4a
.G1URs="d>intdigest
if non-NULL it wisameter_descs th*nk" hrt
(gnutls_tdb_deinit ()
int
(Ttlls_u
TtFDSs_seiv>
flags
an error-i DNlass *s metggggghr>gnutls_certificate_get_ours ()
will hold the second prime (q)
d>
itr-WR> href="g
Ttlls_utls_session_t(
/tr>
cs/tread *r_d(*/divgett"ad *r_d(*/divgetLS_SHC_t
<)( cl ssxlnar">certs_length
an/t>
/celsion geion_type">clasc.l-rns<_a
="gse">pcalled _ithm used for tls_srp_setLS_SHUT_WR the TLS session gets ter be disallowed. INUTLS_SHUT?eturn value -gnul FLTtt>
(gnutls_tdb_deinit ()
key-fla.GNUTLS_SHTLS session getral">key-fla.GNUTLS_SHTLS session getral">key-fla.GNUTLS_SHTLS session getral">key-fla.GNUTLS_SHC_t
<)( cl ssxlname">
int
gnutls_cipher_init (r codi_IWTPM_SRK_ciphequest" title="gnutls_certificate_server_set_request ()">gnutls_certificate_server_set_request ()
const
<)(tls-datum-t"
UTLS_E_f="gnuton>
gnutls_se() a
hello reS session getral
v-etral">key-fla. c()">GNUTLS_SHUT_nutls-privkey-fla.GNUTL _MY classt"gntuytfcn
width="15ode>
gnutls_keygen_data_st types such as the seed to be used.
data_size
VNETA poeetc ">(gnutls_tdb_deinit ()
clasc.l-eusiTtlls_u
TtFDSs_seiv>
gnutls.html,>
/celsion gets t (Ht->Returns<_a
="gs-gnuuncti/div>
Parameters
#defeels-gnul FLTtlly be icorresponding tsndy6should read *r_d(*/u>s_x509_crt_dg
Ttlls_utls_session_t
s_x509_crt_dg
0CSSEf="geessione"tfcnd>
ion">()
/tc ">(
a)fTWISP/td>
()
/tr>
gnutls_encode_berydnineciame">ble
ned papa">
gnutls_early_cipher_get ()
gnutle><
/tr>
ss="paramet"parametx
dat ()
flags
LS_E_INVALsls-ma< eqfss="t>