summaryrefslogtreecommitdiff
path: root/lib/gnutls_state.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-01-31 12:48:20 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-01-31 12:48:20 +0000
commit0a048d3c44bb23f6856587779c5ae0435d54f388 (patch)
tree9e904bf571818a7f1fe3b38c3cd794aff24c2ace /lib/gnutls_state.h
parent8d944005c46e919679b33a1da6b931ad7a7bbc70 (diff)
downloadgnutls-0a048d3c44bb23f6856587779c5ae0435d54f388.tar.gz
Renamed gnutls_x509pki_extract_* to gnutls_x509_extract_*.
Separated gnutls_x509_extract_* functions. Now are in gnutls_x509.c.
Diffstat (limited to 'lib/gnutls_state.h')
-rw-r--r--lib/gnutls_state.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gnutls_state.h b/lib/gnutls_state.h
index 3138ed9701..2e03f2504d 100644
--- a/lib/gnutls_state.h
+++ b/lib/gnutls_state.h
@@ -7,5 +7,9 @@ void _gnutls_state_cert_type_set( GNUTLS_STATE state, CertificateType);
KXAlgorithm gnutls_kx_get( GNUTLS_STATE state);
CertificateType gnutls_cert_type_get( GNUTLS_STATE state);
+#define CHECK_AUTH(auth, ret) if (gnutls_auth_get_type(state) != auth) { \
+ gnutls_assert(); \
+ return ret; \
+ }
#endif