Commit ad1dc29a authored by jan.koester's avatar jan.koester
Browse files

tet

parent 81eb0743
Loading
Loading
Loading
Loading
Loading
+1 −6
Changes for plugin/krb5/krb5.cpp: 1 added line, 6 removed lines.
Original line number Diff line number Diff line
@@ -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;
    }
}

/******************************************************************************
@@ -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);