Home | History | Annotate | Download | only in nc

Lines Matching defs:tls_expecthash

121 char	*tls_expecthash;			/* required hash of peer cert */
228 tls_expecthash = optarg;
422 if (tls_expecthash && !usetls)
531 if (tls_expecthash != NULL)
807 if (tls_expecthash && tls_peer_cert_hash(tls_ctx) &&
808 strcmp(tls_expecthash, tls_peer_cert_hash(tls_ctx)) != 0)
809 errx(1, "peer certificate is not %s", tls_expecthash);
838 else if (gotcert && tls_peer_cert_hash(tls_ctx) && tls_expecthash &&
839 strcmp(tls_expecthash, tls_peer_cert_hash(tls_ctx)) != 0)
840 warnx("peer certificate is not %s", tls_expecthash);