Lines Matching defs:ts
175 struct test_state *ts = NULL;
179 ts = talloc(global_talloc_context, struct test_state);
180 assert_non_null(ts);
182 check_leaks_push(ts);
183 *state = (void *)ts;
189 struct test_state *ts = talloc_get_type_abort(*state, struct test_state);
191 assert_non_null(ts);
193 assert_true(check_leaks_pop(ts));
194 talloc_free(ts);
204 struct test_state *ts = talloc_get_type_abort(*state, struct test_state);
205 assert_non_null(ts);
210 ret = sss_cert_der_to_pem(ts, test_cert_der, sizeof(test_cert_der),
224 struct test_state *ts = talloc_get_type_abort(*state, struct test_state);
225 assert_non_null(ts);
230 ret = sss_cert_pem_to_der(ts, TEST_CERT_PEM, &der, &der_size);
239 ret = sss_cert_pem_to_der(ts, TEST_CERT_PEM_WITH_METADATA, &der, &der_size);
252 struct test_state *ts = talloc_get_type_abort(*state, struct test_state);
253 assert_non_null(ts);
258 ret = sss_cert_derb64_to_pem(ts, TEST_CERT_DERB64, &pem_str, &pem_size);
270 struct test_state *ts = talloc_get_type_abort(*state, struct test_state);
271 assert_non_null(ts);
276 ret = sss_cert_pem_to_derb64(ts, TEST_CERT_PEM, &derb64);
288 struct test_state *ts = talloc_get_type_abort(*state, struct test_state);
289 assert_non_null(ts);
302 ret = bin_to_ldap_filter_value(ts, NULL, 0, NULL);
306 ret = bin_to_ldap_filter_value(ts, test_data[c].blob, 5, &str);
320 struct test_state *ts = talloc_get_type_abort(*state, struct test_state);
321 assert_non_null(ts);
323 ret = sss_cert_derb64_to_ldap_filter(ts, NULL, NULL, NULL, NULL, NULL);
326 ret = sss_cert_derb64_to_ldap_filter(ts, "AAECAwQFBgcICQ==", "attrName",
347 struct test_state *ts = talloc_get_type_abort(*state, struct test_state);
348 assert_non_null(ts);
350 der = sss_base64_decode(ts, SSSD_TEST_CERT_0001, &der_size);
353 exp_key = sss_base64_decode(ts, SSSD_TEST_CERT_SSH_KEY_0001, &exp_key_size);
356 ret = cert_to_ssh_key(ts, "sql:" ABS_BUILD_DIR "/src/tests/test_CA/p11_nssdb",