Skip to content

Commit

Permalink
crypto/secret: move main logic from 'secret' to 'secret_common'.
Browse files Browse the repository at this point in the history
Create base class 'common secret'. Move common data and logic from
'secret' to 'common_secret' class. This allowed adding abstraction layer
for easier adding new 'secret' objects in future.
Convert 'secret' class to child from basic 'secret_common' with 'data'
and 'file' properties.

Signed-off-by: Alexey Krasikov <alex-krasikov@yandex-team.ru>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
  • Loading branch information
Alexey Krasikov authored and berrange committed Jun 15, 2020
1 parent b767d25 commit 4862bd3
Show file tree
Hide file tree
Showing 5 changed files with 482 additions and 357 deletions.
1 change: 1 addition & 0 deletions crypto/Makefile.objs
Expand Up @@ -18,6 +18,7 @@ crypto-obj-y += tlscredsanon.o
crypto-obj-y += tlscredspsk.o
crypto-obj-y += tlscredsx509.o
crypto-obj-y += tlssession.o
crypto-obj-y += secret_common.o
crypto-obj-y += secret.o
crypto-obj-y += pbkdf.o
crypto-obj-$(CONFIG_NETTLE) += pbkdf-nettle.o
Expand Down

0 comments on commit 4862bd3

Please sign in to comment.