aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-19 00:15:46 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-19 00:15:46 -0700
commitb4b54558779bb2a41998dc03400fb6c91004aa4a (patch)
tree63562a64fc7166e0a24e94c32ca46068128a7cd2
parentc21f968301b0d4cc848ea554403e9d9239327803 (diff)
parent175ba67352fd487240c1cfc08dfdc680736bd101 (diff)
downloadcryptography-b4b54558779bb2a41998dc03400fb6c91004aa4a.tar.gz
cryptography-b4b54558779bb2a41998dc03400fb6c91004aa4a.tar.bz2
cryptography-b4b54558779bb2a41998dc03400fb6c91004aa4a.zip
Merge pull request #135 from cyli/nid
Add bindings for nid (Refs #77)
-rw-r--r--cryptography/bindings/openssl/api.py1
-rw-r--r--cryptography/bindings/openssl/nid.py44
2 files changed, 45 insertions, 0 deletions
diff --git a/cryptography/bindings/openssl/api.py b/cryptography/bindings/openssl/api.py
index 31549131..6d3c82eb 100644
--- a/cryptography/bindings/openssl/api.py
+++ b/cryptography/bindings/openssl/api.py
@@ -35,6 +35,7 @@ class API(object):
"engine",
"err",
"evp",
+ "nid",
"opensslv",
"pkcs7",
"rand",
diff --git a/cryptography/bindings/openssl/nid.py b/cryptography/bindings/openssl/nid.py
new file mode 100644
index 00000000..0f5b0003
--- /dev/null
+++ b/cryptography/bindings/openssl/nid.py
@@ -0,0 +1,44 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+INCLUDES = ""
+
+TYPES = """
+static const int NID_undef;
+static const int NID_dsa;
+static const int NID_dsaWithSHA;
+static const int NID_dsaWithSHA1;
+static const int NID_md2;
+static const int NID_md4;
+static const int NID_md5;
+static const int NID_mdc2;
+static const int NID_ripemd160;
+static const int NID_sha;
+static const int NID_sha1;
+static const int NID_sha256;
+static const int NID_sha384;
+static const int NID_sha512;
+static const int NID_sha224;
+static const int NID_sha;
+static const int NID_ecdsa_with_SHA1;
+static const int NID_ecdsa_with_SHA224;
+static const int NID_ecdsa_with_SHA256;
+static const int NID_ecdsa_with_SHA384;
+static const int NID_ecdsa_with_SHA512;
+static const int NID_crl_reason;
+static const int NID_pbe_WithSHA1And3_Key_TripleDES_CBC;
+"""
+
+FUNCTIONS = ""
+
+MACROS = ""