chromium/third_party/boringssl/src/pki/encode_values.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "encode_values.h"

#include "parse_values.h"

#include <openssl/posix_time.h>

BSSL_NAMESPACE_BEGIN
namespace der {

namespace {

bool WriteFourDigit(uint16_t value, uint8_t out[4]) {}

bool WriteTwoDigit(uint8_t value, uint8_t out[2]) {}

}  // namespace

bool EncodePosixTimeAsGeneralizedTime(int64_t posix_time,
                                      GeneralizedTime *generalized_time) {}

bool GeneralizedTimeToPosixTime(const der::GeneralizedTime &generalized,
                                int64_t *result) {}

bool EncodeGeneralizedTime(const GeneralizedTime &time,
                           uint8_t out[kGeneralizedTimeLength]) {}

bool EncodeUTCTime(const GeneralizedTime &time, uint8_t out[kUTCTimeLength]) {}

}  // namespace der
BSSL_NAMESPACE_END