.\" 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_cert_cb 3SSL" .TH fr::ssl::SSL_CTX_set_cert_cb 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_cert_cb, SSL_set_cert_cb \- Gestion de la fonction de rappel de certificat client. .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fB #include \fR .PP \&\fB void SSL_CTX_set_cert_cb(\s-1SSL_CTX\s0 *c, int (*\fR\fIcert_cb\fR\fB)(\s-1SSL\s0 *\fR\fIssl\fR\fB, void *\fR\fIarg\fR\fB), void *\fR\fIarg\fR\fB);\fR \fBvoid SSL_set_cert_cb(\s-1SSL\s0 *s, int (*\fR\fIcert_cb\fR\fB)(\s-1SSL\s0 *\fR\fIssl\fR\fB, void *\fR\fIarg\fR\fB), void *\fR\fIarg\fR\fB);\fR .PP \&\fB int (*\fR\fIcert_cb\fR\fB)(\s-1SSL\s0 *\fR\fIssl\fR\fB, void *\fR\fIarg\fR\fB);\fR .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBSSL_CTX_set_cert_cb\fR() et \fBSSL_set_cert_cb\fR() définissent la fonction de rappel \fB\f(BIcert_cb()\fB\fR, la valeur \fIarg\fR est un pointeur qui est transmis à la fonction de rappel de l’application. .PP Lorsque \fB\f(BIcert_cb()\fB\fR est \s-1NULL,\s0 aucune fonction de rappel n’est utilisée. .PP \&\fB\f(BIcert_cb()\fB\fR est le rappel défini par l’application. Il est employé avant qu’un certificat soit utilisé par un client ou un serveur. Le rappel peut alors inspecter la structure transmise \fIssl\fR et établir ou supprimer n’importe quel certificat. Si le rappel est réussi, il \fBdoit\fR renvoyer \fB1\fR même si aucun certificat n’est établi. Un \fB0\fR est renvoyé lors d’une erreur qui interrompt l’initiation de connexion avec une alerte d’erreur interne fatale. Le renvoi d’une valeur négative suspendra l’initiation de connexion et la fonction d’initiation s'arrêtera immédiatement. \fBSSL_get_error\fR(3) renverra \&\s-1SSL_ERROR_WANT_X509_LOOKUP\s0 pour signaler que l’initiation est suspendue. Le prochain appel à la fonction d’initiation amènera de nouveau à l’appel de \&\fBclient_cert_cb\fR(). C’est au \fBcert_cb\fR() d’emmagasiner l’information sur l’état du dernier appel, si une demande de continuation est faite. .SH "NOTES" .IX Header "NOTES" Une application appellera habituellement \fBSSL_use_certificate\fR() et \&\fBSSL_use_PrivateKey\fR() pour définir les clef privée et certificat d’entité de fin. Elle peut facultativement ajouter en intermédiaire les certificats d’autorité racine en employant \fBSSL_add1_chain_cert\fR(). .PP Elle peut aussi appeler \fBSSL_certs_clear\fR() pour supprimer n’importe quel certificat associé avec l’objet \fI\s-1SSL\s0\fR. .PP La fonction de rappel de certificat remplace la fonction (défectueuse) fournie par la vieille interface client de rappel de certificat. Elle est \&\fBtoujours\fR appelée même si un certificat est déjà défini, ainsi le rappel peut modifier ou supprimer les certificats existants. .PP Un rappel de plus haut niveau peut examiner les paramètres de l’initiation de connexion et définir toute chaîne appropriée. Par exemple, un ancien client ne prenant en charge que \s-1TLS\s0 v1.0 peut recevoir une chaîne de certificats signée avec \s-1SHA1,\s0 tandis qu’un client \s-1TLS\s0 v1.2 déclarant la prise en charge de \s-1SHA256\s0 peut recevoir une chaîne utilisant \s-1SHA256.\s0 .PP Des contrôles de validité pour le serveur sont réalisés sur tous les certificats définis par le rappel. Aussi, si une chaîne de courbe elliptique est définie pour une courbe que le client ne prend pas en charge, elle ne sera \fBpas\fR utilisée. .SH "VOIR AUSSI" .IX Header "VOIR AUSSI" \&\fBssl\fR(3), \fBSSL_use_certificate\fR(3), \&\fBSSL_add1_chain_cert\fR(3), \&\fBSSL_get_client_CA_list\fR(3), \&\fBSSL_clear\fR(3), \fBSSL_free\fR(3) .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.