projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return previous compression methods when setting them.
[openssl.git]
/
ssl
/
ssl_ciph.c
diff --git
a/ssl/ssl_ciph.c
b/ssl/ssl_ciph.c
index 33b7d089104b8c620f60dc8b12092482e42868d7..1927969a76decc56c722fb3b05f7285bcc7b1c01 100644
(file)
--- a/
ssl/ssl_ciph.c
+++ b/
ssl/ssl_ciph.c
@@
-1892,9
+1892,11
@@
STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void)
return(ssl_comp_methods);
}
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;
ssl_comp_methods = meths;
+ return old_meths;
}
int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm)
}
int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm)