.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "fr::ssl::SSL_CTX_set_psk_client_callback 3SSL" .TH fr::ssl::SSL_CTX_set_psk_client_callback 3SSL "2015-12-31" "1.0.2a 1.0.2c" "OpenSSL" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NOM" .IX Header "NOM" SSL_CTX_set_psk_client_callback, SSL_set_psk_client_callback \- Définir un rappel client \s-1PSK\s0 .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fB #include \fR .PP \&\fB void SSL_CTX_set_psk_client_callback(\s-1SSL_CTX\s0 *\fR\fIctx\fR\fB,\fR \fBunsigned int (*\fR\fIcallback\fR\fB)(\s-1SSL\s0 *\fR\fIssl\fR\fB, const char *\fR\fIhint\fR\fB,\fR \fBchar *\fR\fIidentity\fR\fB, unsigned int\fR \fImax_identity_len\fR\fB,\fR \fBunsigned char *\fR\fIpsk\fR\fB, unsigned int\fR \fImax_psk_len\fR\fB));\fR \fBvoid SSL_set_psk_client_callback(\s-1SSL\s0 *\fR\fIssl\fR\fB,\fR \fBunsigned int (*\fR\fIcallback\fR\fB)(\s-1SSL\s0 *\fR\fIssl\fR\fB, const char *\fR\fIhint\fR\fB,\fR \fBchar *\fR\fIidentity\fR\fB, unsigned int\fR \fImax_identity_len\fR\fB,\fR \fBunsigned char *\fR\fIpsk\fR\fB, unsigned int\fR \fImax_psk_len\fR\fB));\fR .SH "DESCRIPTION" .IX Header "DESCRIPTION" Une application cliente doit fournir une fonction de rappel qui est appelée quand le client envoie le message ClientKeyExchange au serveur. .PP Le but de cette fonction de rappel est de sélectionner l'identité \s-1PSK\s0 et la clef prépartagée à utiliser pendant la phase de configuration de connexion. .PP Le rappel est défini en utilisant les fonctions \&\fBSSL_CTX_set_psk_client_callback\fR() ou \fBSSL_set_psk_client_callback\fR(). À la fonction de rappel sont fournis : la connexion dans le paramètre \fIssl\fR, un indice d'identité \s-1PSK\s0 terminé par \s-1NULL\s0 envoyé par le serveur dans le paramètre \fIhint\fR, un tampon \fIidentity\fR de taille \&\fImax_identity_len\fR octets où l'identité terminée par \s-1NULL\s0 résultante sera stockée, et un tampon \fIpsk\fR de taille \fImax_psk_len\fR octets où la clef prépartagée résultante sera stockée. .SH "NOTES" .IX Header "NOTES" Remarquez que le paramètre \fIhint\fR donné au rappel pourrait être \s-1NULL.\s0 .SH "VALEURS DE RETOUR" .IX Header "VALEURS DE RETOUR" Les valeurs de retour du rappel client sont interprétées comme suit. .PP En cas de réussite (le rappel a trouvé une identité \s-1PSK\s0 et une clef prépartagée à utiliser), la taille (> 0) de \fIpsk\fR en octet est renvoyée. .PP Sinon, ou en cas d'erreur, le rappel devrait renvoyer 0. Dans ce cas, la configuration de connexion échoue. .SH "TRADUCTION" .IX Header "TRADUCTION" La traduction de cette page de manuel est maintenue par les membres de la liste . Veuillez signaler toute erreur de traduction par un rapport de bogue sur le paquet manpages-fr-extra.