]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
python-common/cryptotools: unify and organize all endpoint functions
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 24 Apr 2025 18:36:58 +0000 (14:36 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 7 Jul 2025 13:32:24 +0000 (09:32 -0400)
commit552d7b4373afa1a93fe47ce234560b9c8485321d
tree63778b9c7ca23bf0de3ab36476d5b15c6255104b
parentc98e53f1136ebef2ffeb3d191ab2fc49d9728a3d
python-common/cryptotools: unify and organize all endpoint functions

Lightly reorganize and make the "endpoint" functions in cryptotools.py more
consistent and uniform. Use small functions for input and output
handling so that the handling is done the same way throughout. Pass a
pre-constructed crypto caller via the args to then endpoint functions.
Make generating the private key it's own named function rather than
one single (and only) function with overloaded behavior controlled by
a cli switch.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/python-common/ceph/cryptotools/cryptotools.py
src/python-common/ceph/cryptotools/remote.py