]> 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)
committerNizamudeen A <nia@redhat.com>
Mon, 5 Jan 2026 10:44:33 +0000 (16:14 +0530)
commitea218346f36454f8b06924a082a0ca2a008c8821
treeb0c8d0f043189b5da4e43c6072fee60af8d31337
parentf83d383889288d4ee81d8b7d48752d0ac6ddf4fe
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>
(cherry picked from commit 552d7b4373afa1a93fe47ce234560b9c8485321d)
src/python-common/ceph/cryptotools/cryptotools.py
src/python-common/ceph/cryptotools/remote.py