Lines Matching defs:peer
759 BIO_ADDR *lpeer = NULL, *peer = NULL;
771 lpeer = peer = BIO_ADDR_new();
772 if (peer == NULL) {
777 /* Read peer information */
778 (void)BIO_dgram_get_peer(SSL_get_rbio(ssl), peer);
780 peer = ourpeer;
783 /* Create buffer with peer's address and port */
784 if (!BIO_ADDR_rawaddress(peer, NULL, &length)) {
785 BIO_printf(bio_err, "Failed getting peer address\n");
789 port = BIO_ADDR_rawport(peer);
794 BIO_ADDR_rawaddress(peer, buffer + sizeof(port), NULL);
1206 X509 *peer;
1213 peer = SSL_get_peer_certificate(s);
1214 if (peer != NULL) {
1218 X509_NAME_print_ex(bio_err, X509_get_subject_name(peer),
1227 BIO_puts(bio_err, "No peer certificate\n");
1229 X509_free(peer);