summaryrefslogtreecommitdiff
path: root/src/M2Crypto/m2.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2021-01-13 11:47:29 +0100
committerMatěj Cepl <mcepl@cepl.eu>2021-01-14 14:29:59 +0100
commit9178c4d56b7270a6b813995f55a4828ce96256d8 (patch)
treeac6a539983294f42cc2b97d404f95912d2c7a8fe /src/M2Crypto/m2.py
parentd93ee3c676929ae1ca9b3acb94a8ce9c3f9c936d (diff)
downloadm2crypto-9178c4d56b7270a6b813995f55a4828ce96256d8.tar.gz
Move project to src/ layout
Diffstat (limited to 'src/M2Crypto/m2.py')
-rw-r--r--src/M2Crypto/m2.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/M2Crypto/m2.py b/src/M2Crypto/m2.py
new file mode 100644
index 0000000..81e4315
--- /dev/null
+++ b/src/M2Crypto/m2.py
@@ -0,0 +1,31 @@
+from __future__ import absolute_import
+
+"""M2Crypto low level OpenSSL wrapper functions.
+
+m2 is the low level wrapper for OpenSSL functions. Typically you would not
+need to use these directly, since these will be called by the higher level
+objects you should try to use instead.
+
+Naming conventions: All functions wrapped by m2 are all lower case,
+words separated by underscores.
+
+Examples:
+
+OpenSSL M2Crypto
+
+X509_get_version m2.x509_get_version
+X509_get_notBefore m2.x509_get_not_before
+X509_REQ_verify m2.x509_req_verify
+
+Exceptions to naming rules:
+
+XXX TDB
+
+Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved.
+
+Portions created by Open Source Applications Foundation (OSAF) are
+Copyright (C) 2004 OSAF. All Rights Reserved.
+"""
+
+from M2Crypto.m2crypto import *
+lib_init()