diff options
Diffstat (limited to 'src/libkmip/kmip_bio.h')
-rw-r--r-- | src/libkmip/kmip_bio.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/libkmip/kmip_bio.h b/src/libkmip/kmip_bio.h new file mode 100644 index 000000000..1877c41fa --- /dev/null +++ b/src/libkmip/kmip_bio.h @@ -0,0 +1,31 @@ +/* Copyright (c) 2018 The Johns Hopkins University/Applied Physics Laboratory + * All Rights Reserved. + * + * This file is dual licensed under the terms of the Apache 2.0 License and + * the BSD 3-Clause License. See the LICENSE file in the root of this + * repository for more information. + */ + +#ifndef KMIP_BIO_H +#define KMIP_BIO_H + +#include <openssl/ssl.h> +#include "kmip.h" + +/* +OpenSSH BIO API +*/ + +int kmip_bio_create_symmetric_key(BIO *, TemplateAttribute *, char **, int *); +int kmip_bio_locate(BIO *, Attribute *, size_t, size_t *, char ***); +int kmip_bio_get_symmetric_key(BIO *, char *, int, char **, int *); +int kmip_bio_destroy_symmetric_key(BIO *, char *, int); + +int kmip_bio_create_symmetric_key_with_context(KMIP *, BIO *, TemplateAttribute *, char **, int *); +int kmip_bio_locate_with_context(KMIP *, BIO *, Attribute *, size_t, size_t *, char ***); +int kmip_bio_get_symmetric_key_with_context(KMIP *, BIO *, char *, int, char **, int *); +int kmip_bio_destroy_symmetric_key_with_context(KMIP *, BIO *, char *, int); + +int kmip_bio_send_request_encoding(KMIP *, BIO *, char *, int, char **, int *); + +#endif /* KMIP_BIO_H */ |