Lines Matching refs:vpm
300 static int test_X509_cmp_timeframe_vpm(const X509_VERIFY_PARAM *vpm, in test_X509_cmp_timeframe_vpm() argument
305 int always_0 = vpm != NULL in test_X509_cmp_timeframe_vpm()
306 && (X509_VERIFY_PARAM_get_flags(vpm) & X509_V_FLAG_USE_CHECK_TIME) == 0 in test_X509_cmp_timeframe_vpm()
307 && (X509_VERIFY_PARAM_get_flags(vpm) & X509_V_FLAG_NO_CHECK_TIME) != 0; in test_X509_cmp_timeframe_vpm()
310 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, asn1_after), 0) in test_X509_cmp_timeframe_vpm()
311 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, NULL), 0) in test_X509_cmp_timeframe_vpm()
312 && TEST_int_eq(X509_cmp_timeframe(vpm, NULL, asn1_after), 0) in test_X509_cmp_timeframe_vpm()
313 && TEST_int_eq(X509_cmp_timeframe(vpm, NULL, NULL), 0) in test_X509_cmp_timeframe_vpm()
314 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_after, asn1_after), in test_X509_cmp_timeframe_vpm()
316 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, asn1_before), in test_X509_cmp_timeframe_vpm()
318 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_after, asn1_before), in test_X509_cmp_timeframe_vpm()
329 X509_VERIFY_PARAM *vpm = X509_VERIFY_PARAM_new(); in test_X509_cmp_timeframe() local
332 if (vpm == NULL) in test_X509_cmp_timeframe()
335 && test_X509_cmp_timeframe_vpm(vpm, asn1_before, asn1_mid, asn1_after); in test_X509_cmp_timeframe()
337 X509_VERIFY_PARAM_set_time(vpm, now); in test_X509_cmp_timeframe()
339 && test_X509_cmp_timeframe_vpm(vpm, asn1_before, asn1_mid, asn1_after) in test_X509_cmp_timeframe()
340 && X509_VERIFY_PARAM_set_flags(vpm, X509_V_FLAG_NO_CHECK_TIME) in test_X509_cmp_timeframe()
341 && test_X509_cmp_timeframe_vpm(vpm, asn1_before, asn1_mid, asn1_after); in test_X509_cmp_timeframe()
343 X509_VERIFY_PARAM_free(vpm); in test_X509_cmp_timeframe()