result = 0;
gnutls_assert();
goto cleanup;
- }
+ } else if (ret == 1)
+ result = 1;
/* Check activation/expiration times
*/
if (!(flags & GNUTLS_VERIFY_DISABLE_TRUSTED_TIME_CHECKS)) {
out |= check_time(issuer, now);
if (out != 0) {
+ gnutls_assert();
result = 0;
if (output)
*output |= out;
out |= check_time(cert, now);
if (out != 0) {
+ gnutls_assert();
result = 0;
if (output)
*output |= out;
&certificate_list[i], 1,
flags, &output, NULL, now,
&max_path, nc, func)) != 1) {
+ gnutls_assert();
status |= output;
status |= GNUTLS_CERT_INVALID;
goto cleanup;