From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754791AbbLRABv (ORCPT ); Thu, 17 Dec 2015 19:01:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45497 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752011AbbLRABu (ORCPT ); Thu, 17 Dec 2015 19:01:50 -0500 Subject: [PATCH 0/5] X.509: Fix time handling From: David Howells To: keyrings@vger.kernel.org Cc: dhowells@redhat.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 18 Dec 2015 00:01:48 +0000 Message-ID: <20151218000148.29483.67155.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here's a set of patches that fix X.509 time handling in three ways: (1) Fix leap year handling. (2) Add leap second handling (where you get a time of 23:59:60). (3) Add end-of-day midnight encoding (where you get a time of 24:00:00). David --- David Howells (5): X.509: Fix leap year handling again Handle leap seconds in mktime64() X.509: Support leap seconds Handle both ISO 8601 encodings of midnight in mktime64() X.509: Handle midnight alternative notation in GeneralizedTime crypto/asymmetric_keys/x509_cert_parser.c | 24 +++++++++++++++++------- include/linux/time.h | 13 ++++++------- kernel/time/time.c | 19 +++++++++++++++---- 3 files changed, 38 insertions(+), 18 deletions(-)