diff options
author | cyli <cyli@twistedmatrix.com> | 2013-10-18 21:45:09 -0700 |
---|---|---|
committer | cyli <cyli@twistedmatrix.com> | 2013-10-18 21:45:09 -0700 |
commit | 175ba67352fd487240c1cfc08dfdc680736bd101 (patch) | |
tree | 634a216ec9967d6cac50815eda682ca2ab9bc7c8 | |
parent | 617c0c7e6f89271373f3f15ee05d16c80c8bdd5e (diff) | |
download | cryptography-175ba67352fd487240c1cfc08dfdc680736bd101.tar.gz cryptography-175ba67352fd487240c1cfc08dfdc680736bd101.tar.bz2 cryptography-175ba67352fd487240c1cfc08dfdc680736bd101.zip |
Add bindings for nid
-rw-r--r-- | cryptography/bindings/openssl/api.py | 1 | ||||
-rw-r--r-- | cryptography/bindings/openssl/nid.py | 44 |
2 files changed, 45 insertions, 0 deletions
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 = "" |