From 175ba67352fd487240c1cfc08dfdc680736bd101 Mon Sep 17 00:00:00 2001 From: cyli Date: Fri, 18 Oct 2013 21:45:09 -0700 Subject: Add bindings for nid --- cryptography/bindings/openssl/api.py | 1 + cryptography/bindings/openssl/nid.py | 44 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 cryptography/bindings/openssl/nid.py diff --git a/cryptography/bindings/openssl/api.py b/cryptography/bindings/openssl/api.py index cfd4fc47..35d2cc55 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 = "" -- cgit v1.2.3