diff options
| author | Justin Stephenson <jstephen@redhat.com> | 2017-03-20 11:51:05 -0400 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2017-03-23 17:25:26 +0100 |
| commit | a04bef313508c423ed06cc54805a3b8106ab90cd (patch) | |
| tree | d5ab88d67537ae52878b424f73d6820ed10fcfee /src/providers/ipa | |
| parent | a0b1bfa76073d3ce3208e67e6d72bb92088edac5 (diff) | |
| download | sssd-a04bef313508c423ed06cc54805a3b8106ab90cd.tar.gz sssd-a04bef313508c423ed06cc54805a3b8106ab90cd.tar.xz sssd-a04bef313508c423ed06cc54805a3b8106ab90cd.zip | |
IPA: Add s2n request to string function
Add a function to convert request_types to string allowing the
ability to print request type information for ipa_s2n functions during
IPA client operations.
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/providers/ipa')
| -rw-r--r-- | src/providers/ipa/ipa_s2n_exop.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c index 07bbb2b4d..4fe20689f 100644 --- a/src/providers/ipa/ipa_s2n_exop.c +++ b/src/providers/ipa/ipa_s2n_exop.c @@ -979,6 +979,22 @@ done: return ret; } +static const char *ipa_s2n_reqtype2str(enum request_types request_type) +{ + switch (request_type) { + case REQ_SIMPLE: + return "REQ_SIMPLE"; + case REQ_FULL: + return "REQ_FULL"; + case REQ_FULL_WITH_MEMBERS: + return "REQ_FULL_WITH_MEMBERS"; + default: + break; + } + + return "Unknown request type"; +} + struct ipa_s2n_get_list_state { struct tevent_context *ev; struct ipa_id_ctx *ipa_ctx; |
