Loading plugin/krb5/krb5.cpp +1 −6 Changes for plugin/krb5/krb5.cpp: 1 added line, 6 removed lines. Original line number Diff line number Diff line Loading @@ -112,11 +112,6 @@ namespace { while (b) { size_t t = b; b = a % b; a = t; } return a; } /* LCM for n-fold */ size_t lcm(size_t a, size_t b) { return a / gcd(a, b) * b; } } /****************************************************************************** Loading Loading @@ -240,7 +235,7 @@ std::vector<uint8_t> Asn1Der::encodeGeneralString(const std::string &s) { std::vector<uint8_t> Asn1Der::encodeGeneralizedTime(time_t t) { struct tm utc; portable_gmtime_r(&t, &utc); char buf[20]; char buf[32]; snprintf(buf, sizeof(buf), "%04d%02d%02d%02d%02d%02dZ", utc.tm_year + 1900, utc.tm_mon + 1, utc.tm_mday, utc.tm_hour, utc.tm_min, utc.tm_sec); Loading Loading
plugin/krb5/krb5.cpp +1 −6 Changes for plugin/krb5/krb5.cpp: 1 added line, 6 removed lines. Original line number Diff line number Diff line Loading @@ -112,11 +112,6 @@ namespace { while (b) { size_t t = b; b = a % b; a = t; } return a; } /* LCM for n-fold */ size_t lcm(size_t a, size_t b) { return a / gcd(a, b) * b; } } /****************************************************************************** Loading Loading @@ -240,7 +235,7 @@ std::vector<uint8_t> Asn1Der::encodeGeneralString(const std::string &s) { std::vector<uint8_t> Asn1Der::encodeGeneralizedTime(time_t t) { struct tm utc; portable_gmtime_r(&t, &utc); char buf[20]; char buf[32]; snprintf(buf, sizeof(buf), "%04d%02d%02d%02d%02d%02dZ", utc.tm_year + 1900, utc.tm_mon + 1, utc.tm_mday, utc.tm_hour, utc.tm_min, utc.tm_sec); Loading