📄 ne_ssl_trust_cert.3
字号:
.\"Generated by db2man.xsl. Don't modify this, modify the source..de Sh \" Subsection.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Ip \" List item.br.ie \\n(.$>=3 .ne \\$3.el .ne 3.IP "\\$1" \\$2...TH "NE_SSL_TRUST_CERT" 3 "5 July 2004" "neon 0.24.7" "neon API reference".SH NAMEne_ssl_trust_cert, ne_ssl_trust_default_ca \- functions to indicate that certificates are trusted.SH "SYNOPSIS".ad l.hy 0#include <ne_session\&.h>.sp.HP 24void\ \fBne_ssl_trust_cert\fR\ (ne_session\ *\fIsession\fR, const\ ne_ssl_certificate\ *\fIcert\fR);.HP 30void\ \fBne_ssl_trust_default_ca\fR\ (ne_session\ *\fIsession\fR);.ad.hy.SH "DESCRIPTION".PPTo indicate that a given certificate is trusted by the user, the certificate object can be passed to \fBne_ssl_trust_cert\fR\&. The certificate object is duplicated internally and can subequently be destroyed\&..PPThe SSL library in use by neon may include a default set of CA certificates; calling the \fBne_ssl_trust_default_ca\fR function will indicate that these CAs are trusted by the user\&..SH "EXAMPLES".PPLoad the CA certificate stored in \fI/path/to/cacert\&.pem\fR:.nfne_session *sess = ne_session_create(\&.\&.\&.);ne_ssl_certificate *cert = ne_ssl_cert_read("/path/to/cacert\&.pem");if (cert) { ne_ssl_trust_cert(sess, cert); ne_ssl_cert_free(cert);} else { printf("Could not load CA cert: %s\\n", ne_get_error(sess));}.fi.SH "SEE ALSO".PP\fBne_ssl_cert_read\fR(3), \fBne_ssl_cert_import\fR(3), \fBne_ssl_cert_free\fR(3).SH AUTHORJoe Orton <neon@webdav\&.org>.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -