~ubuntu-branches/ubuntu/trusty/lua-sec/trusty

« back to all changes in this revision

Viewing changes to src/x509.h

  • Committer: Package Import Robot
  • Author(s): Enrico Tassi
  • Date: 2013-08-21 09:10:18 UTC
  • mfrom: (6.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130821091018-l46fhz3tbyehqadm
Tags: 0.4.1+git063e8a8-2
* Bundle all C modules into a single ssl.so module, as the upstream
  suggested 
* Fix lua-sec.h listing all luaopen_ssl_xxx available
* Remove last bits of transitional packages 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef LSEC_X509_H
 
2
#define LSEC_X509_H
 
3
 
 
4
/*--------------------------------------------------------------------------
 
5
 * LuaSec 0.4.1
 
6
 * Copyright (C) 2012
 
7
 *
 
8
 *--------------------------------------------------------------------------*/
 
9
 
 
10
#include <openssl/x509v3.h>
 
11
#include <lua.h>
 
12
 
 
13
#include "config.h"
 
14
 
 
15
typedef struct t_x509_ {
 
16
  X509 *cert;
 
17
} t_x509;
 
18
typedef t_x509* p_x509;
 
19
 
 
20
void  lsec_pushx509(lua_State* L, X509* cert);
 
21
X509* lsec_checkx509(lua_State* L, int idx);
 
22
 
 
23
LSEC_API int luaopen_ssl_x509(lua_State *L);
 
24
 
 
25
#endif