diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-01-31 12:48:20 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-01-31 12:48:20 +0000 |
commit | 0a048d3c44bb23f6856587779c5ae0435d54f388 (patch) | |
tree | 9e904bf571818a7f1fe3b38c3cd794aff24c2ace /lib/gnutls_state.h | |
parent | 8d944005c46e919679b33a1da6b931ad7a7bbc70 (diff) | |
download | gnutls-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.h | 4 |
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 |