-/* $OpenBSD: cms.c,v 1.31 2023/03/09 18:53:24 tb Exp $ */
+/* $OpenBSD: cms.c,v 1.32 2023/03/12 11:45:52 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
const char *time_str = "UTCtime";
int time_type = V_ASN1_UTCTIME;
+ *signtime = 0;
at = X509_ATTRIBUTE_get0_data(attr, 0, time_type, NULL);
if (at == NULL) {
time_str = "GeneralizedTime";
*xp = NULL;
if (rsz != NULL)
*rsz = 0;
+ *signtime = 0;
/* just fail for empty buffers, the warning was printed elsewhere */
if (der == NULL)