summaryrefslogtreecommitdiffstats
path: root/src/responder/secrets/secsrv_private.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2016-03-17 15:48:01 -0400
committerJakub Hrozek <jhrozek@redhat.com>2016-06-29 21:46:57 +0200
commite625eb47a3091d92eda2271b123f8aab06227b63 (patch)
treeb87f78d1e97f14ed3845d75f107c2e1381698f42 /src/responder/secrets/secsrv_private.h
parent8f2a34cc6964a1f80a1434e05315a7ae0bb5774e (diff)
downloadsssd-e625eb47a3091d92eda2271b123f8aab06227b63.tar.gz
sssd-e625eb47a3091d92eda2271b123f8aab06227b63.tar.xz
sssd-e625eb47a3091d92eda2271b123f8aab06227b63.zip
Local secrets provider Content-Type handling
Properly handle and enforce ithe presence of the content-type header in the local and proxy providers to conform to the Custoida protocol. Avoids different behavior between the local provider and a remote server that may cause developers to have an application working against the local storage and then fail when the administrator configures a remote storage. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/responder/secrets/secsrv_private.h')
-rw-r--r--src/responder/secrets/secsrv_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/responder/secrets/secsrv_private.h b/src/responder/secrets/secsrv_private.h
index ce8cf8216..c3b663996 100644
--- a/src/responder/secrets/secsrv_private.h
+++ b/src/responder/secrets/secsrv_private.h
@@ -131,6 +131,9 @@ int sec_array_to_json(TALLOC_CTX *mem_ctx,
char **array, int count,
char **output);
+bool sec_req_has_header(struct sec_req_ctx *req,
+ const char *name, const char *value);
+
/* secsrv_cmd.c */
#define SEC_REQUEST_MAX_SIZE 65536
#define SEC_PACKET_MAX_RECV_SIZE 8192