2
0

SSL_SESSION_get0_peer.pod 930 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. =pod
  2. =head1 NAME
  3. SSL_SESSION_get0_peer
  4. - get details about peer's certificate for a session
  5. =head1 SYNOPSIS
  6. #include <openssl/ssl.h>
  7. X509 *SSL_SESSION_get0_peer(SSL_SESSION *s);
  8. =head1 DESCRIPTION
  9. SSL_SESSION_get0_peer() returns the peer certificate associated with the session
  10. B<s> or NULL if no peer certificate is available. The caller should not free the
  11. returned value (unless L<X509_up_ref(3)> has also been called).
  12. =head1 RETURN VALUES
  13. SSL_SESSION_get0_peer() returns a pointer to the peer certificate or NULL if
  14. no peer certificate is available.
  15. =head1 SEE ALSO
  16. L<ssl(7)>
  17. =head1 COPYRIGHT
  18. Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
  19. Licensed under the Apache License 2.0 (the "License"). You may not use
  20. this file except in compliance with the License. You can obtain a copy
  21. in the file LICENSE in the source distribution or at
  22. L<https://www.openssl.org/source/license.html>.
  23. =cut