https://github.com/henrycg/earand
Tip revision: 362625f3847ddd2e2d5a90cf5f93b4b3ea76e059 authored by Henry Corrigan-Gibbs on 21 May 2018, 19:54:59 UTC
Merge branch 'master' of github.com:henrycg/earand
Merge branch 'master' of github.com:henrycg/earand
Tip revision: 362625f
dsa_ca.h
#ifndef _DSA_CA_H
#define _DSA_CA_H
#include <openssl/x509.h>
#include "dsa_params.h"
#include "util.h"
typedef struct dsa_ca* DsaCa;
typedef const struct dsa_ca* const_DsaCa;
/**
* Create a new DSA CA object.
*/
DsaCa DsaCa_New(DsaParams params);
void DsaCa_Free(DsaCa ca);
/**
* Validate and sign a device's certificate
* after making sure that the EA signed it.
*/
X509* DsaCa_SignCertificate(DsaCa ca, X509* cert_in);
#endif