Giter Site home page Giter Site logo

Comments (6)

peterdettman avatar peterdettman commented on May 31, 2024

A putative seconds value of 60 makes this an invalid UTCTime string. See X.680-0207 [1], 43.3 b) 2). Even if you were inclined to "accept" it, it still wouldn't be the canonical encoding that a signature requires. So, NotABug in BC, recommend you reject in MimeKit.

[1] http://www.itu.int/ITU-T/studygroups/com17/languages/X.680-0207.pdf

from bc-csharp.

jstedfast avatar jstedfast commented on May 31, 2024

okay, thanks - I kinda figured as much, but wasn't sure.

from bc-csharp.

peterdettman avatar peterdettman commented on May 31, 2024

Incidentally, it appears a GeneralizedTime would allow seconds=60, since it is defined by ISO 8601 [1], which appears to allow for a leap second, i.e. a distinct tick from the next 'mm00'. You'd still have to check that it was used appropriately, and "150213165460" does not strike me as a valid leap second!

[1] http://en.wikipedia.org/wiki/ISO_8601#Times

from bc-csharp.

jstedfast avatar jstedfast commented on May 31, 2024

Indeed. According to WIkipedia:

The most recent one happened on June 30, 2012 at 23:59:60 UTC.[1] A leap
second will again be inserted at the end of June 30, 2015 at 23:59:60 UTC.[2]

from bc-csharp.

jstedfast avatar jstedfast commented on May 31, 2024

Anyway, thanks for looking into this, Peter.

from bc-csharp.

peterdettman avatar peterdettman commented on May 31, 2024

No problem. Will you report this against the responsible mail client?

from bc-csharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.