Lines Matching refs:cert
39 GTlsCertificate *cert; in pem_parser() local
52 cert = g_tls_certificate_new_from_pem (pem, -1, &error); in pem_parser()
54 g_assert_nonnull (cert); in pem_parser()
56 g_object_get (cert, in pem_parser()
59 parsed_key_pem = g_test_tls_connection_get_private_key_pem (cert); in pem_parser()
66 g_object_unref (cert); in pem_parser()
70 cert = g_tls_certificate_new_from_pem (pem, 10, &error); in pem_parser()
76 cert = g_tls_certificate_new_from_pem (pem, pem_len - 10, &error); in pem_parser()
86 cert = g_tls_certificate_new_from_pem (pem, -1, &error); in pem_parser()
88 g_assert_nonnull (cert); in pem_parser()
90 g_object_get (cert, in pem_parser()
93 parsed_key_pem = g_test_tls_connection_get_private_key_pem (cert); in pem_parser()
101 g_object_unref (cert); in pem_parser()
108 cert = g_tls_certificate_new_from_pem (pem, -1, &error); in pem_parser()
110 g_assert_nonnull (cert); in pem_parser()
112 g_object_get (cert, in pem_parser()
115 parsed_key_pem = g_test_tls_connection_get_private_key_pem (cert); in pem_parser()
122 g_object_unref (cert); in pem_parser()
129 cert = g_tls_certificate_new_from_pem (pem, -1, &error); in pem_parser()
132 g_assert_null (cert); in pem_parser()
139 GTlsCertificate *cert; in pem_parser_handles_chain() local
152 cert = original_cert = g_tls_certificate_new_from_pem (pem, -1, &error); in pem_parser_handles_chain()
155 g_assert_nonnull (cert); in pem_parser_handles_chain()
157 g_object_get (cert, in pem_parser_handles_chain()
164 parsed_key_pem = g_test_tls_connection_get_private_key_pem (cert); in pem_parser_handles_chain()
169 issuer = g_tls_certificate_get_issuer (cert); in pem_parser_handles_chain()
172 cert = issuer; in pem_parser_handles_chain()
173 issuer = g_tls_certificate_get_issuer (cert); in pem_parser_handles_chain()
176 g_object_get (cert, in pem_parser_handles_chain()
183 parsed_key_pem = g_test_tls_connection_get_private_key_pem (cert); in pem_parser_handles_chain()
187 cert = issuer; in pem_parser_handles_chain()
188 issuer = g_tls_certificate_get_issuer (cert); in pem_parser_handles_chain()
191 g_object_get (cert, in pem_parser_handles_chain()
197 parsed_key_pem = g_test_tls_connection_get_private_key_pem (cert); in pem_parser_handles_chain()
206 GTlsCertificate *cert; in from_file() local
211 …cert = g_tls_certificate_new_from_file (g_test_get_filename (G_TEST_DIST, "cert-tests", "key-cert.… in from_file()
214 g_assert_nonnull (cert); in from_file()
216 g_object_get (cert, in from_file()
219 parsed_key_pem = g_test_tls_connection_get_private_key_pem (cert); in from_file()
226 g_object_unref (cert); in from_file()
232 GTlsCertificate *cert; in from_files() local
237 …cert = g_tls_certificate_new_from_files (g_test_get_filename (G_TEST_DIST, "cert-tests", "cert1.pe… in from_files()
241 g_assert_nonnull (cert); in from_files()
243 g_object_get (cert, in from_files()
246 parsed_key_pem = g_test_tls_connection_get_private_key_pem (cert); in from_files()
253 g_object_unref (cert); in from_files()
256 …cert = g_tls_certificate_new_from_files (g_test_get_filename (G_TEST_DIST, "cert-tests", "cert1.pe… in from_files()
261 g_assert_null (cert); in from_files()
264 …cert = g_tls_certificate_new_from_files (g_test_get_filename (G_TEST_DIST, "cert-tests", "cert1.pe… in from_files()
269 g_assert_null (cert); in from_files()
272 …cert = g_tls_certificate_new_from_files (g_test_get_filename (G_TEST_DIST, "cert-tests", "cert1.pe… in from_files()
277 g_assert_null (cert); in from_files()
280 …cert = g_tls_certificate_new_from_files (g_test_get_filename (G_TEST_DIST, "cert-tests", "key.pem"… in from_files()
285 g_assert_null (cert); in from_files()
290 …cert = g_tls_certificate_new_from_files (g_test_get_filename (G_TEST_DIST, "cert-tests", "key-cert… in from_files()
294 g_assert_nonnull (cert); in from_files()
295 g_object_unref (cert); in from_files()
301 GTlsCertificate *cert; in from_files_crlf() local
306 …cert = g_tls_certificate_new_from_files (g_test_get_filename (G_TEST_DIST, "cert-tests", "cert-crl… in from_files_crlf()
310 g_assert_nonnull (cert); in from_files_crlf()
312 g_object_get (cert, in from_files_crlf()
315 parsed_key_pem = g_test_tls_connection_get_private_key_pem (cert); in from_files_crlf()
322 g_object_unref (cert); in from_files_crlf()
328 GTlsCertificate *cert; in from_files_pkcs8() local
333 …cert = g_tls_certificate_new_from_files (g_test_get_filename (G_TEST_DIST, "cert-tests", "cert1.pe… in from_files_pkcs8()
337 g_assert_nonnull (cert); in from_files_pkcs8()
339 g_object_get (cert, in from_files_pkcs8()
342 parsed_key_pem = g_test_tls_connection_get_private_key_pem (cert); in from_files_pkcs8()
349 g_object_unref (cert); in from_files_pkcs8()
355 GTlsCertificate *cert; in from_files_pkcs8enc() local
359 …cert = g_tls_certificate_new_from_files (g_test_get_filename (G_TEST_DIST, "cert-tests", "cert1.pe… in from_files_pkcs8enc()
364 g_assert_null (cert); in from_files_pkcs8enc()
382 GTlsCertificate *cert = l->data; in list_from_file() local
384 g_object_get (cert, in list_from_file()
405 GTlsCertificate *cert; in from_pkcs11_uri() local
408 …cert = g_tls_certificate_new_from_pkcs11_uris ("pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%… in from_pkcs11_uri()
410 g_assert_nonnull (cert); in from_pkcs11_uri()
412 g_object_get (cert, "pkcs11-uri", &pkcs11_uri, NULL); in from_pkcs11_uri()
416 g_object_unref (cert); in from_pkcs11_uri()
423 GTlsCertificate *cert; in from_unsupported_pkcs11_uri() local
426 cert = g_tls_certificate_new_from_pkcs11_uris ("unsupported", NULL, &error); in from_unsupported_pkcs11_uri()
428 g_assert_null (cert); in from_unsupported_pkcs11_uri()