diff options
author | Christian Blättler <blatc2@bfh.ch> | 2024-04-21 12:32:48 +0200 |
---|---|---|
committer | Christian Blättler <blatc2@bfh.ch> | 2024-04-21 12:32:48 +0200 |
commit | f81ee7ff118bd3c2da5ca21fd6707ba7751832e6 (patch) | |
tree | a0b44dbff857ac92793af8a2495c033d4a12afb2 /src/util | |
parent | 75588f40ec9140ceb74b80e31fbf830f5341fde7 (diff) |
add token issue sig helper
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Makefile.am | 1 | ||||
-rw-r--r-- | src/util/tokens.c | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am index d2504588b..897a821b1 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -102,6 +102,7 @@ libtalerutil_la_SOURCES = \ payto.c \ secmod_signatures.c \ taler_error_codes.c \ + tokens.c \ url.c \ util.c \ wallet_signatures.c \ diff --git a/src/util/tokens.c b/src/util/tokens.c new file mode 100644 index 000000000..61fe40501 --- /dev/null +++ b/src/util/tokens.c @@ -0,0 +1,33 @@ +/* + This file is part of TALER + Copyright (C) 2024 Taler Systems SA + + TALER is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + TALER is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> +*/ +/** + * @file tokens.c + * @brief token family utility functions + * @author Christian Blättler + */ +#include "platform.h" +#include "taler_util.h" + + +void +TALER_token_issue_sig_free (struct TALER_TokenIssueSignature *issue_sig) +{ + if (NULL != issue_sig->signature) + { + GNUNET_CRYPTO_unblinded_sig_decref (issue_sig->signature); + issue_sig->signature = NULL; + } +} |