From: xuraoqing Date: Mon, 6 Mar 2023 06:42:16 +0000 (+0800) Subject: add gnutls_pkcs7_get_signature_count test X-Git-Tag: 3.8.1~34^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0dff47adc04fe2daa9e412cb79b8d8a1a3a8080;p=thirdparty%2Fgnutls.git add gnutls_pkcs7_get_signature_count test Signed-off-by: xuraoqing --- diff --git a/tests/pkcs7-gen.c b/tests/pkcs7-gen.c index d336d5b643..2d23570754 100644 --- a/tests/pkcs7-gen.c +++ b/tests/pkcs7-gen.c @@ -195,6 +195,12 @@ void doit(void) exit(1); } + ret = gnutls_pkcs7_get_signature_count(pkcs7); + if (ret != 1) { + fail("error in %d: %s\n", __LINE__, gnutls_strerror(ret)); + exit(1); + } + ret = gnutls_pkcs7_get_attr(info.signed_attrs, 1, &oid, &data, 0); if (ret < 0) { fail("error in %d: %s\n", __LINE__, gnutls_strerror(ret));