Skip to content

Commit

Permalink
CBL-5438: DateTime standard format parser (#1977)
Browse files Browse the repository at this point in the history
  • Loading branch information
callumbirks authored Mar 28, 2024
1 parent 0c8f2b0 commit 9329ea1
Show file tree
Hide file tree
Showing 9 changed files with 588 additions and 47 deletions.
3 changes: 2 additions & 1 deletion Crypto/PublicKey+Apple.mm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "Logging.hh"
#include "Defer.hh"
#include "ParseDate.hh"
#include "DateFormat.hh"
#include "SecureDigest.hh"
#include "StringUtil.hh"

Expand Down Expand Up @@ -303,7 +304,7 @@ virtual int _sign(int/*mbedtls_md_type_t*/ mbedDigestAlgorithm,
@autoreleasepool {
LogTo(TLSLogDomain, "Generating %d-bit RSA key-pair in Keychain", keySizeInBits);
char timestr[100] = "LiteCore ";
fleece::FormatISO8601Date(timestr + strlen(timestr), time(nullptr)*1000, false, nullptr);
fleece::DateFormat::format(timestr + strlen(timestr), time(nullptr)*1000, false, {});
NSDictionary* params = @ {
(id)kSecAttrKeyType: (id)kSecAttrKeyTypeRSA,
(id)kSecAttrKeySizeInBits: @(keySizeInBits),
Expand Down
Loading

0 comments on commit 9329ea1

Please sign in to comment.