Install a pre-compressed certificate blob on a server SSL context.
Declared in <openssl/ssl.h>
int
SSL_CTX_set1_compressed_cert(
SSL_CTX* ctx,
int algorithm,
unsigned char* comp_data,
size_t comp_length,
size_t orig_length);
1 on success, or 0 on failure (including when ctx is a client context).
| Name | Description |
|---|---|
| ctx | Server SSL context that will send the compressed certificate. |
| algorithm | Certificate compression algorithm identifier. |
| comp_data | Compressed certificate bytes (copied into ctx). |
| comp_length | Length of comp_data in bytes. |
| orig_length | Uncompressed certificate length in bytes. |