GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PEM_READ_SSL_SESSION(3) FreeBSD Library Functions Manual PEM_READ_SSL_SESSION(3)

PEM_read_SSL_SESSION, PEM_read_bio_SSL_SESSION, PEM_write_SSL_SESSION, PEM_write_bio_SSL_SESSIONencode and decode SSL session objects in PEM format

#include <openssl/ssl.h>

SSL_SESSION *
PEM_read_SSL_SESSION(FILE *fp, SSL_SESSION **a, pem_password_cb *cb, void *u);

SSL_SESSION *
PEM_read_bio_SSL_SESSION(BIO *bp, SSL_SESSION **a, pem_password_cb *cb, void *u);

int
PEM_write_SSL_SESSION(FILE *fp, const SSL_SESSION *a);

int
PEM_write_bio_SSL_SESSION(BIO *bp, const SSL_SESSION *a);

These routines convert between local instances of ASN.1 SSL_SESSION objects and the PEM encoding.

() reads a PEM-encoded SSL_SESSION object from the file fp and returns it. The cb and u parameters are as described in PEM_read_bio_PrivateKey(3).

() is similar to PEM_read_SSL_SESSION() but reads from the BIO bp.

() writes the PEM encoding of the object a to the file fp.

() similarly writes to the BIO bp.

PEM_read_SSL_SESSION() and PEM_read_bio_SSL_SESSION() return a pointer to an allocated object, which should be released by calling SSL_SESSION_free(3), or NULL on error.

PEM_write_SSL_SESSION() and PEM_write_bio_SSL_SESSION() return the number of bytes written or 0 on error.

PEM_read(3), ssl(3)

PEM_read_SSL_SESSION() and PEM_write_SSL_SESSION() first appeared in SSLeay 0.5.2. PEM_read_bio_SSL_SESSION() and PEM_write_bio_SSL_SESSION() first appeared in SSLeay 0.6.0. These functions have been available since OpenBSD 2.4.

June 12, 2019 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.