Searched refs:tls_expecthash (Results 1 – 1 of 1) sorted by relevance
121 char *tls_expecthash; /* required hash of peer cert */ variable228 tls_expecthash = optarg; in main()422 if (tls_expecthash && !usetls) in main()531 if (tls_expecthash != NULL) in main()807 if (tls_expecthash && tls_peer_cert_hash(tls_ctx) && in tls_setup_client()808 strcmp(tls_expecthash, tls_peer_cert_hash(tls_ctx)) != 0) in tls_setup_client()809 errx(1, "peer certificate is not %s", tls_expecthash); in tls_setup_client()838 else if (gotcert && tls_peer_cert_hash(tls_ctx) && tls_expecthash && in tls_setup_server()839 strcmp(tls_expecthash, tls_peer_cert_hash(tls_ctx)) != 0) in tls_setup_server()840 warnx("peer certificate is not %s", tls_expecthash); in tls_setup_server()