diff options
Diffstat (limited to 'src/plugins/tls/shared/qasn1element.cpp')
-rw-r--r-- | src/plugins/tls/shared/qasn1element.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/plugins/tls/shared/qasn1element.cpp b/src/plugins/tls/shared/qasn1element.cpp index 3df76c3774..de5f70a585 100644 --- a/src/plugins/tls/shared/qasn1element.cpp +++ b/src/plugins/tls/shared/qasn1element.cpp @@ -261,13 +261,6 @@ QDateTime QAsn1Element::toDateTime() const if (mValue.back() != 'Z') return result; - // In addition, check that we only have digits representing the - // date/time. This should not really be necessary (there's no such - // thing as negative months/days/etc.); it's a workaround for - // QTBUG-84349. - if (!std::all_of(mValue.begin(), mValue.end() - 1, isAsciiDigit)) - return result; - if (mType == UtcTimeType && mValue.size() == 13) { result = QDateTime::fromString(QString::fromLatin1(mValue), QStringLiteral("yyMMddHHmmsst")); |