bareos: master 29e6692a

Author Committer Branch Timestamp Parent
arogge arogge master 2023-01-10 10:00 master e97e21df Pending
Changeset lib: refactor crypto_openssl to allow new digests

Refactor the code on crypto_openssl so that we can add another digest
that is not openssl-based. This mostly adds another level of
indirection by moving digest update and finalize into class scope and
making Digest a base-class with no ties to OpenSSL.

TL;DR use virtual dispatch so we can call something that is not OpenSSL
mod - core/src/lib/crypto.cc Diff File
mod - core/src/lib/crypto.h Diff File
mod - core/src/lib/crypto_openssl.cc Diff File
mod - core/src/lib/crypto_openssl.h Diff File