diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-28 15:58:08 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-28 15:58:08 +0200 |
commit | 939c1dd6a57ec0cd93e255a933c5e55bca76f7f5 (patch) | |
tree | e685cb2f9631b4c3188fc1237d9d19a2fac4b4a7 | |
parent | d97260408c3938110dbfdc3703981f488b4e5125 (diff) |
Commenting the "peer key" trait.
-rw-r--r-- | src/exchange-lib/testing_api_trait_key_peer.c | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/src/exchange-lib/testing_api_trait_key_peer.c b/src/exchange-lib/testing_api_trait_key_peer.c index e4aee5d14..102fb1b58 100644 --- a/src/exchange-lib/testing_api_trait_key_peer.c +++ b/src/exchange-lib/testing_api_trait_key_peer.c @@ -36,12 +36,12 @@ * Obtain a private key from a "peer". Used e.g. to obtain * a merchant's priv to sign a /track request. * - * @param index (tipically zero) which key to return if they - * exist in an array. - * @param selector which coin to pick if @a cmd has multiple on - * offer + * @param cmd command that is offering the key. + * @param index (tipically zero) which key to return if there + * are multiple on offer. * @param priv[out] set to the key coming from @a cmd. - * @return #GNUNET_OK on success + * + * @return #GNUNET_OK on success. */ int TALER_TESTING_get_trait_peer_key @@ -56,11 +56,14 @@ TALER_TESTING_get_trait_peer_key } /** - * @param index (tipically zero) which key to return if they - * exist in an array. - * @param priv which object should be returned + * Offer private key, typically done when CMD_1 needs it to + * sign a request. + * + * @param index (tipically zero) which key to return if there are + * multiple on offer. + * @param priv which object should be offered. * - * @return the trait, to be put in the traits array of the command + * @return the trait. */ struct TALER_TESTING_Trait TALER_TESTING_make_trait_peer_key @@ -80,10 +83,12 @@ TALER_TESTING_make_trait_peer_key * Obtain a public key from a "peer". Used e.g. to obtain * a merchant's public key to use backend's API. * - * @param index (tipically zero) which key to return if they - * exist in an array. + * @param cmd command offering the key. + * @param index (tipically zero) which key to return if there + * are multiple on offer. * @param pub[out] set to the key coming from @a cmd. - * @return #GNUNET_OK on success + * + * @return #GNUNET_OK on success. */ int TALER_TESTING_get_trait_peer_key_pub @@ -98,11 +103,14 @@ TALER_TESTING_get_trait_peer_key_pub } /** - * @param index (tipically zero) which key to return if they - * exist in an array. - * @param pub which object should be returned + * Offer public key. + * + * @param index (tipically zero) which key to return if there + * are multiple on offer. NOTE: if one key is offered, it + * is mandatory to set this as zero. + * @param pub which object should be returned. * - * @return the trait, to be put in the traits array of the command + * @return the trait. */ struct TALER_TESTING_Trait TALER_TESTING_make_trait_peer_key_pub |