diff options
author | Leonardo Bras <leobras.c@gmail.com> | 2021-05-21 03:11:29 -0300 |
---|---|---|
committer | Leonardo Bras <leobras.c@gmail.com> | 2021-05-21 03:13:39 -0300 |
commit | cee6093e8c16f2e1869812b7a69e4c13f9b5aa67 (patch) | |
tree | dd6cf2ebbb4a5a9ab21416facc3c0fa15a45218b /lib/x509/krb5.c | |
parent | df640cf6670848b7af967b3673b3807ad491b4be (diff) | |
download | gnutls-cee6093e8c16f2e1869812b7a69e4c13f9b5aa67.tar.gz |
ASN1 : Remove warnings related to old libtasn1 namings
While compiling gnutls, some warnings related to deprecated names can be
printed, such as:
./../x509/x509_int.h:392:13: warning: 'ASN1_TYPE' macro is deprecated, use 'asn1_node' instead.
392 | int _gnutls_x509_write_key_int_le(ASN1_TYPE node, const char *value,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To avoid that, rename types as show in devel/libtasn1/NEWS (release 3.1):
ASN1_DATA_NODE -> asn1_data_node_st
ASN1_ARRAY_TYPE -> asn1_static_node (was asn1_static_node_t)
ASN1_TYPE -> asn1_node
ASN1_TYPE_EMPTY -> NULL
static_struct_asn -> asn1_static_node_st
node_asn_struct -> asn1_node_st
node_asn -> asn1_node_st
Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
Diffstat (limited to 'lib/x509/krb5.c')
-rw-r--r-- | lib/x509/krb5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/x509/krb5.c b/lib/x509/krb5.c index d68c737570..b26d07dfcb 100644 --- a/lib/x509/krb5.c +++ b/lib/x509/krb5.c @@ -139,7 +139,7 @@ static krb5_principal_data *name_to_principal(const char *_name) int _gnutls_krb5_principal_to_der(const char *name, gnutls_datum_t * der) { int ret, result; - ASN1_TYPE c2 = ASN1_TYPE_EMPTY; + asn1_node c2 = NULL; krb5_principal_data *princ; unsigned i; @@ -208,7 +208,7 @@ int _gnutls_krb5_principal_to_der(const char *name, gnutls_datum_t * der) return ret; } -static int principal_to_str(ASN1_TYPE c2, gnutls_buffer_st * str) +static int principal_to_str(asn1_node c2, gnutls_buffer_st * str) { gnutls_datum_t realm = { NULL, 0 }; gnutls_datum_t component = { NULL, 0 }; @@ -292,7 +292,7 @@ int _gnutls_krb5_der_to_principal(const gnutls_datum_t * der, gnutls_datum_t * name) { int ret, result; - ASN1_TYPE c2 = ASN1_TYPE_EMPTY; + asn1_node c2 = NULL; gnutls_buffer_st str; _gnutls_buffer_init(&str); |