diff options
author | Donald Stufft <donald@stufft.io> | 2013-10-04 21:32:30 -0700 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-10-04 21:32:30 -0700 |
commit | 5babb229b343251e4f7bf637db3e9a6db59ae402 (patch) | |
tree | 5eb48b53c81af4b5e13ebd086e58f57ed0b6fd4b | |
parent | 66f225c5bb28281cd884d19c743cefd925124689 (diff) | |
parent | 635ff50e73ae789ba7594c64ee1bd060ac23f69e (diff) | |
download | cryptography-5babb229b343251e4f7bf637db3e9a6db59ae402.tar.gz cryptography-5babb229b343251e4f7bf637db3e9a6db59ae402.tar.bz2 cryptography-5babb229b343251e4f7bf637db3e9a6db59ae402.zip |
Merge pull request #86 from pyca/bind-dh
Bind OpenSSL's DH. Refs #77
-rw-r--r-- | cryptography/bindings/openssl/api.py | 1 | ||||
-rw-r--r-- | cryptography/bindings/openssl/dh.py | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/cryptography/bindings/openssl/api.py b/cryptography/bindings/openssl/api.py index 673088ad..8b13277e 100644 --- a/cryptography/bindings/openssl/api.py +++ b/cryptography/bindings/openssl/api.py @@ -27,6 +27,7 @@ class API(object): _modules = [ "bignum", "crypto", + "dh", "dsa", "evp", "opensslv", diff --git a/cryptography/bindings/openssl/dh.py b/cryptography/bindings/openssl/dh.py new file mode 100644 index 00000000..ac130054 --- /dev/null +++ b/cryptography/bindings/openssl/dh.py @@ -0,0 +1,28 @@ +# 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 = """ +#include <openssl/dh.h> +""" + +TYPES = """ +typedef ... DH; +""" + +FUNCTIONS = """ +DH *DH_new(); +void DH_free(DH *); +""" + +MACROS = """ +""" |