summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2017-03-15 10:57:09 +0100
committerJakub Hrozek <jhrozek@redhat.com>2017-03-23 17:18:43 +0100
commit31a6661ff2a640fbcf97460df2415fd1bab309b5 (patch)
tree97be2d43cd6c25fabae34065d6c12987f7f9461c /src/lib
parentdb36dca3d45e6eefbb30042ee65876566f1a6014 (diff)
downloadsssd-31a6661ff2a640fbcf97460df2415fd1bab309b5.tar.gz
sssd-31a6661ff2a640fbcf97460df2415fd1bab309b5.tar.xz
sssd-31a6661ff2a640fbcf97460df2415fd1bab309b5.zip
certmap: add placeholder for OpenSSL implementation
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/certmap/sss_cert_content_crypto.c32
-rw-r--r--src/lib/certmap/sss_certmap_int.h8
2 files changed, 37 insertions, 3 deletions
diff --git a/src/lib/certmap/sss_cert_content_crypto.c b/src/lib/certmap/sss_cert_content_crypto.c
new file mode 100644
index 000000000..bddcf9bce
--- /dev/null
+++ b/src/lib/certmap/sss_cert_content_crypto.c
@@ -0,0 +1,32 @@
+/*
+ SSSD - certificate handling utils - OpenSSL version
+ The calls defined here should be useable outside of SSSD as well, e.g. in
+ libsss_certmap.
+
+ Copyright (C) Sumit Bose <sbose@redhat.com> 2017
+
+ This program 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 of the License, or
+ (at your option) any later version.
+
+ This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include <errno.h>
+
+#include "lib/certmap/sss_certmap.h"
+#include "lib/certmap/sss_certmap_int.h"
+
+int sss_cert_get_content(TALLOC_CTX *mem_ctx,
+ const uint8_t *der_blob, size_t der_size,
+ struct sss_cert_content **content)
+{
+ return EINVAL;
+}
diff --git a/src/lib/certmap/sss_certmap_int.h b/src/lib/certmap/sss_certmap_int.h
index 28f1c596c..0b4cda736 100644
--- a/src/lib/certmap/sss_certmap_int.h
+++ b/src/lib/certmap/sss_certmap_int.h
@@ -22,12 +22,14 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <sys/types.h>
-#include <regex.h>
-
#ifndef __SSS_CERTMAP_INT_H__
#define __SSS_CERTMAP_INT_H__
+#include <sys/types.h>
+#include <regex.h>
+#include <stdint.h>
+#include <talloc.h>
+
#define CM_DEBUG(cm_ctx, format, ...) do { \
if (cm_ctx != NULL && cm_ctx->debug != NULL) { \
cm_ctx->debug(cm_ctx->debug_priv, __FILE__, __LINE__, __FUNCTION__, \