diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-03-21 23:06:37 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-03-21 23:06:37 +0100 |
commit | db353d2a58c660a4352f08f50cfcab569e59a8cb (patch) | |
tree | 7e350dbbab2d3a5a1d8891c99b4d2f831bdce9f4 | |
parent | 17706d02a18781654b2bbd3672a4a53fc48b038a (diff) | |
download | gnutls-db353d2a58c660a4352f08f50cfcab569e59a8cb.tar.gz |
fixed test to use the correct function names.
-rw-r--r-- | tests/x509-extensions.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/x509-extensions.c b/tests/x509-extensions.c index cca36da1a6..e513e3f6e1 100644 --- a/tests/x509-extensions.c +++ b/tests/x509-extensions.c @@ -83,7 +83,7 @@ static int basic_constraints(const gnutls_datum_t * der) Certificate Authority (CA): TRUE Path Length Constraint: 4 */ - ret = gnutls_x509_ext_get_basic_constraints(der, &ca, &pathlen); + ret = gnutls_x509_ext_import_basic_constraints(der, &ca, &pathlen); if (ret < 0) { fprintf(stderr, "error in %d\n", __LINE__); return ret; @@ -136,7 +136,7 @@ static int subject_alt_name(const gnutls_datum_t * der) return ret; } - ret = gnutls_x509_ext_get_subject_alt_names(der, san, 0); + ret = gnutls_x509_ext_import_subject_alt_names(der, san, 0); if (ret < 0) { fprintf(stderr, "error in %d\n", __LINE__); return ret; @@ -247,7 +247,7 @@ static int ext_key_usage(const gnutls_datum_t * der) return ret; } - ret = gnutls_x509_ext_get_key_purposes(der, p, 0); + ret = gnutls_x509_ext_import_key_purposes(der, p, 0); if (ret < 0) { fprintf(stderr, "error in %d\n", __LINE__); return ret; @@ -301,7 +301,7 @@ static int crt_policies(const gnutls_datum_t * der) return ret; } - ret = gnutls_x509_ext_get_policies(der, policies, 0); + ret = gnutls_x509_ext_import_policies(der, policies, 0); if (ret < 0) { fprintf(stderr, "error in %d\n", __LINE__); return ret; @@ -389,7 +389,7 @@ static int key_usage(const gnutls_datum_t * der) int ret; unsigned int usage = 0; - ret = gnutls_x509_ext_get_key_usage(der, &usage); + ret = gnutls_x509_ext_import_key_usage(der, &usage); if (ret < 0) { fprintf(stderr, "error in %d\n", __LINE__); return ret; @@ -412,7 +412,7 @@ static int subject_key_id(const gnutls_datum_t * der) int ret; gnutls_datum_t id; - ret = gnutls_x509_ext_get_subject_key_id(der, &id); + ret = gnutls_x509_ext_import_subject_key_id(der, &id); if (ret < 0) { fprintf(stderr, "error in %d\n", __LINE__); return ret; @@ -452,7 +452,7 @@ static int crl_dist_points(const gnutls_datum_t * der) return ret; } - ret = gnutls_x509_ext_get_crl_dist_points(der, dp, 0); + ret = gnutls_x509_ext_import_crl_dist_points(der, dp, 0); if (ret < 0) { fprintf(stderr, "error in %d\n", __LINE__); return ret; @@ -529,7 +529,7 @@ static int name_constraints(const gnutls_datum_t * der) return ret; } - ret = gnutls_x509_ext_get_name_constraints(der, nc, 0); + ret = gnutls_x509_ext_import_name_constraints(der, nc, 0); if (ret < 0) { fprintf(stderr, "error in %d\n", __LINE__); return ret; @@ -620,7 +620,7 @@ static int ext_aia(const gnutls_datum_t * der) return ret; } - ret = gnutls_x509_ext_get_aia(der, aia, 0); + ret = gnutls_x509_ext_import_aia(der, aia, 0); if (ret < 0) { fprintf(stderr, "error in %d\n", __LINE__); return ret; |