Xamarin Public Jenkins (auto-signing) e5cd25ff4f Imported Upstream version 4.8.0.459
Former-commit-id: 2a5b9df2014f72665850c7f885e7aed54704a53a
2017-01-19 14:22:10 +00:00

39 lines
698 B
C

//
// btls-key.h
// MonoBtls
//
// Created by Martin Baulig on 3/7/16.
// Copyright © 2016 Xamarin. All rights reserved.
//
#ifndef __btls__btls_key__
#define __btls__btls_key__
#include <stdio.h>
#include <btls-ssl.h>
#include <btls-x509.h>
EVP_PKEY *
mono_btls_key_new ();
void
mono_btls_key_free (EVP_PKEY *pkey);
EVP_PKEY *
mono_btls_key_up_ref (EVP_PKEY *pkey);
int
mono_btls_key_get_bits (EVP_PKEY *pkey);
int
mono_btls_key_is_rsa (EVP_PKEY *pkey);
int
mono_btls_key_assign_rsa_private_key (EVP_PKEY *pkey, uint8_t *der_data, int der_length);
int
mono_btls_key_get_bytes (EVP_PKEY *pkey, uint8_t **buffer, int *size, int include_private_bits);
#endif /* __btls__btls_key__ */