plugin  2.1.3
Runtime plugin loader and Ed25519 DSO signing for C++ applications
dso-sign.cpp File Reference
#include <sign/Manifest.hh>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/err.h>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
+ Include dependency graph for dso-sign.cpp:

Functions

static void fatalSsl (const char *msg)
 
static std::string hexEncode (const unsigned char *data, std::size_t len)
 
static std::string sha256File (std::string const &path)
 
static std::string isoTimestamp ()
 
static std::string pubKeyFingerprint (EVP_PKEY *pkey)
 
static void writeTempFile (std::string const &path, const void *data, std::size_t len)
 
static void stripExistingSections (std::string const &path)
 
int main (int argc, char **argv)
 

Function Documentation

◆ fatalSsl()

static void fatalSsl ( const char *  msg)
static

Referenced by main(), and pubKeyFingerprint().

+ Here is the caller graph for this function:

◆ hexEncode()

static std::string hexEncode ( const unsigned char *  data,
std::size_t  len 
)
static

◆ sha256File()

static std::string sha256File ( std::string const &  path)
static

References fedem::sign::hexEncode().

+ Here is the call graph for this function:

◆ isoTimestamp()

static std::string isoTimestamp ( )
static

Referenced by main().

+ Here is the caller graph for this function:

◆ pubKeyFingerprint()

static std::string pubKeyFingerprint ( EVP_PKEY *  pkey)
static

References fatalSsl(), and fedem::sign::hexEncode().

+ Here is the call graph for this function:

◆ writeTempFile()

static void writeTempFile ( std::string const &  path,
const void *  data,
std::size_t  len 
)
static

Referenced by main().

+ Here is the caller graph for this function:

◆ stripExistingSections()

static void stripExistingSections ( std::string const &  path)
static

References fedem::sign::kManifestSection, and fedem::sign::kSigSection.

Referenced by main().

+ Here is the caller graph for this function:

◆ main()