mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
8d13115d9a
This change aims to improve the speed of incremental builds.
23 lines
427 B
C++
23 lines
427 B
C++
/*
|
|
* Copyright (c) 2020, Ali Mohammad Pur <mpfard@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/ByteBuffer.h>
|
|
#include <AK/Span.h>
|
|
|
|
namespace Crypto {
|
|
|
|
enum PEMType {
|
|
Certificate,
|
|
PrivateKey,
|
|
};
|
|
|
|
ByteBuffer decode_pem(ReadonlyBytes);
|
|
ErrorOr<Vector<ByteBuffer>> decode_pems(ReadonlyBytes);
|
|
ErrorOr<ByteBuffer> encode_pem(ReadonlyBytes, PEMType = PEMType::Certificate);
|
|
|
|
}
|