# Functions
DecodeCert decodes a certificate from a PEM-encoded byte array.
DecodeKey decodes a private key from a PEM-encoded byte array.
EncodeCert encodes a certificate into a PEM-encoded byte array.
EncodeKey encodes a private key into a PEM-encoded byte array.
EnsureProtectedFile ensures that the file at the specified path is protected.
InitLogger intializes a new slog logger, returning a cleanup function and an error (if any).
MakeDirs makes the directories for the specified path.
ParseLogLevel parses a log level.
SafeCreate safely creates a new file with the specified data.
SafeOpen safely opens a new file handle.
SafeRead reads a file safely.
# Constants
CHALLENGE_ID_LENGTH is the length of the challenge ID (in bytes).
CHALLENGE_STATE_LENGTH is the length of the challenge OAuth state (in bytes).
No description provided by the author
PROTECTED_FILE_MODE is the expected file mode for protected files.
PROTECTED_FOLDER_MODE is the expected file mode for protected folders.
SAFE_OPEN_MODE_APPEND is the mode to open a file for appending, creating the file if it does not exist.
SAFE_OPEN_MODE_EXCL is the mode to create a new file, requiring that the file does not already exist.
SAFE_OPEN_MODE_TRUNCATE is the mode to open a file for writing, creating the file if it does not exist and truncating it if it does.
No description provided by the author
No description provided by the author
VERIFICATION_CODE_LENGTH is the length of the code (in decimal digits).
# Variables
About is the about string.
Branch is the branch the application was built from.
Commit is the commit the application was built from.
LogLevel constants.
No description provided by the author
No description provided by the author
Timestamp is the time the application was built.
Version is the version of the application.
VersionConstraint is the version constraint of the application.
No description provided by the author
# Type aliases
LogLevel is the log level.
LogOutput is the log output.
SafeOpenMode is the mode to open a file.