summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-07-16 11:14:11 +0200
committerLennart Poettering <lennart@poettering.net>2023-08-18 11:54:25 +0200
commitf51ed26b3865587cdb3db68fce6f7fa0a61e1485 (patch)
treea8bd4792eaa61e813c3142ff86ab107285b1d5ba /src
parenttpm2-util: give PCR 6 a name too (diff)
downloadsystemd-f51ed26b3865587cdb3db68fce6f7fa0a61e1485.tar.xz
systemd-f51ed26b3865587cdb3db68fce6f7fa0a61e1485.zip
tpm2-util: add _const_/_pure_ to a couple of to_string()/from_string() functions
Diffstat (limited to 'src')
-rw-r--r--src/shared/tpm2-util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/tpm2-util.h b/src/shared/tpm2-util.h
index 7959a17b81..23a97f15ff 100644
--- a/src/shared/tpm2-util.h
+++ b/src/shared/tpm2-util.h
@@ -272,11 +272,11 @@ int tpm2_parse_luks2_json(JsonVariant *v, int *ret_keyslot, uint32_t *ret_hash_p
int tpm2_hash_alg_to_size(uint16_t alg);
-const char *tpm2_hash_alg_to_string(uint16_t alg);
-int tpm2_hash_alg_from_string(const char *alg);
+const char *tpm2_hash_alg_to_string(uint16_t alg) _const_;
+int tpm2_hash_alg_from_string(const char *alg) _pure_;
-const char *tpm2_asym_alg_to_string(uint16_t alg);
-int tpm2_asym_alg_from_string(const char *alg);
+const char *tpm2_asym_alg_to_string(uint16_t alg) _const_;
+int tpm2_asym_alg_from_string(const char *alg) _pure_;
char *tpm2_pcr_mask_to_string(uint32_t mask);