summaryrefslogtreecommitdiff
path: root/lib/gnutls.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2000-12-11 13:43:20 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2000-12-11 13:43:20 +0000
commit331fbb1b8c377229b10799ae7f23c59d22726413 (patch)
treee04d61fd845dd3e6922dfa2b6ea20c5c4ca44ebd /lib/gnutls.c
parent15f8719e1e7b8a64fbf4eb7719795097dee5979b (diff)
downloadgnutls-331fbb1b8c377229b10799ae7f23c59d22726413.tar.gz
added some new functions in the API. documentation updated.
Diffstat (limited to 'lib/gnutls.c')
-rw-r--r--lib/gnutls.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gnutls.c b/lib/gnutls.c
index 0f54986b55..cf97b21b91 100644
--- a/lib/gnutls.c
+++ b/lib/gnutls.c
@@ -731,3 +731,12 @@ ssize_t gnutls_recv_int(int cd, GNUTLS_STATE state, ContentType type, char *data
return ret;
}
+BulkCipherAlgorithm gnutls_get_current_cipher( GNUTLS_STATE state) {
+ return state->security_parameters.bulk_cipher_algorithm;
+}
+MACAlgorithm gnutls_get_current_mac_algorithm( GNUTLS_STATE state) {
+ return state->security_parameters.mac_algorithm;
+}
+CompressionMethod gnutls_get_current_compression_method( GNUTLS_STATE state) {
+ return state->security_parameters.compression_algorithm;
+}