Return previous compression methods when setting them.

This commit is contained in:
Dr. Stephen Henson
2014-02-06 13:57:26 +00:00
parent c53a5308a5
commit b45e874d7c
2 changed files with 4 additions and 2 deletions

View File

@@ -1892,9 +1892,11 @@ STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void)
return(ssl_comp_methods);
}
void SSL_COMP_set0_compression_methods(STACK_OF(SSL_COMP) *meths)
STACK_OF(SSL_COMP) *SSL_COMP_set0_compression_methods(STACK_OF(SSL_COMP) *meths)
{
STACK_OF(SSL_COMP) *old_meths = ssl_comp_methods;
ssl_comp_methods = meths;
return old_meths;
}
int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm)