Last active
December 24, 2015 07:49
-
-
Save wallrj/6766599 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[richard@zorin use-opentls]$ trial OpenSSL.test | |
/home/richard/projects/opentls/trunk/tls/c/__pycache__/_cffi__x54fd29d7x1106ffac.c: In function ‘_cffi_f_SSLv2_client_method’: | |
/home/richard/projects/opentls/trunk/tls/c/__pycache__/_cffi__x54fd29d7x1106ffac.c:11090:12: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] | |
{ result = SSLv2_client_method(); } | |
^ | |
/home/richard/projects/opentls/trunk/tls/c/__pycache__/_cffi__x54fd29d7x1106ffac.c: In function ‘_cffi_f_SSLv2_method’: | |
/home/richard/projects/opentls/trunk/tls/c/__pycache__/_cffi__x54fd29d7x1106ffac.c:11104:12: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] | |
{ result = SSLv2_method(); } | |
^ | |
/home/richard/projects/opentls/trunk/tls/c/__pycache__/_cffi__x54fd29d7x1106ffac.c: In function ‘_cffi_f_SSLv2_server_method’: | |
/home/richard/projects/opentls/trunk/tls/c/__pycache__/_cffi__x54fd29d7x1106ffac.c:11118:12: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] | |
{ result = SSLv2_server_method(); } | |
^ | |
OpenSSL | |
test ... [ERROR] | |
Traceback (most recent call last): | |
File "/home/richard/projects/Twisted/trunk/bin/trial", line 18, in <module> | |
run() | |
File "/home/richard/projects/Twisted/trunk/twisted/scripts/trial.py", line 615, in run | |
test_result = trialRunner.run(suite) | |
File "/home/richard/projects/Twisted/trunk/twisted/trial/runner.py", line 729, in run | |
return self._runWithoutDecoration(test, self._forceGarbageCollection) | |
File "/home/richard/projects/Twisted/trunk/twisted/trial/runner.py", line 756, in _runWithoutDecoration | |
run() | |
File "/home/richard/projects/Twisted/trunk/twisted/trial/runner.py", line 751, in <lambda> | |
run = lambda: suite.run(result) | |
File "/home/richard/projects/Twisted/trunk/twisted/trial/runner.py", line 221, in run | |
self._bail() | |
File "/home/richard/projects/Twisted/trunk/twisted/trial/runner.py", line 206, in _bail | |
from twisted.internet import reactor | |
File "/home/richard/projects/Twisted/trunk/twisted/internet/reactor.py", line 38, in <module> | |
from twisted.internet import default | |
File "/home/richard/projects/Twisted/trunk/twisted/internet/default.py", line 56, in <module> | |
install = _getInstallFunction(platform) | |
File "/home/richard/projects/Twisted/trunk/twisted/internet/default.py", line 44, in _getInstallFunction | |
from twisted.internet.epollreactor import install | |
File "/home/richard/projects/Twisted/trunk/twisted/internet/epollreactor.py", line 24, in <module> | |
from twisted.internet import posixbase | |
File "/home/richard/projects/Twisted/trunk/twisted/internet/posixbase.py", line 24, in <module> | |
from twisted.internet import error, udp, tcp | |
File "/home/richard/projects/Twisted/trunk/twisted/internet/tcp.py", line 29, in <module> | |
from twisted.internet._newtls import ( | |
File "/home/richard/projects/Twisted/trunk/twisted/internet/_newtls.py", line 21, in <module> | |
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol | |
File "/home/richard/projects/Twisted/trunk/twisted/protocols/tls.py", line 40, in <module> | |
from OpenSSL.SSL import Error, ZeroReturnError, WantReadError | |
File "/home/richard/projects/PyOpenSSL/branches/use-opentls/OpenSSL/__init__.py", line 36, in <module> | |
from OpenSSL import crypto | |
File "/home/richard/projects/PyOpenSSL/branches/use-opentls/OpenSSL/crypto.py", line 3, in <module> | |
from tls.c import api as _api | |
File "/home/richard/projects/opentls/trunk/tls/__init__.py", line 2, in <module> | |
from tls.version import __version__ | |
File "/home/richard/projects/opentls/trunk/tls/version.py", line 3, in <module> | |
from tls.c import api | |
File "/home/richard/projects/opentls/trunk/tls/c/__init__.py", line 243, in <module> | |
api = API() | |
File "/home/richard/projects/opentls/trunk/tls/c/__init__.py", line 138, in __init__ | |
self._verify() | |
File "/home/richard/projects/opentls/trunk/tls/c/__init__.py", line 178, in _verify | |
libraries=['ssl']) | |
File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 311, in verify | |
lib = self.verifier.load_library() | |
File "/usr/lib64/python2.7/site-packages/cffi/verifier.py", line 69, in load_library | |
return self._load_library() | |
File "/usr/lib64/python2.7/site-packages/cffi/verifier.py", line 154, in _load_library | |
return self._vengine.load_library() | |
File "/usr/lib64/python2.7/site-packages/cffi/vengine_cpy.py", line 124, in load_library | |
raise ffiplatform.VerificationError(error) | |
cffi.ffiplatform.VerificationError: importing '/home/richard/projects/opentls/trunk/tls/c/__pycache__/_cffi__x54fd29d7x1106ffac.so': /home/richard/projects/opentls/trunk/tls/c/__pycache__/_cffi__x54fd29d7x1106ffac.so: undefined symbol: EVP_ecdsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[richard@zorin use-opentls]$ openssl version -a | |
OpenSSL 1.0.1e-fips 11 Feb 2013 | |
built on: Mon Mar 18 21:00:11 UTC 2013 | |
platform: linux-x86_64 | |
options: bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx) | |
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -DPURIFY -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM | |
OPENSSLDIR: "/etc/pki/tls" | |
engines: dynamic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[richard@zorin use-opentls]$ yum info openssl | |
Loaded plugins: langpacks, refresh-packagekit | |
Installed Packages | |
Name : openssl | |
Arch : x86_64 | |
Epoch : 1 | |
Version : 1.0.1e | |
Release : 4.fc19 | |
Size : 1.5 M | |
Repo : installed | |
Summary : Utilities from the general purpose cryptography library with TLS implementation | |
URL : http://www.openssl.org/ | |
Licence : OpenSSL | |
Description : The OpenSSL toolkit provides support for secure communications between | |
: machines. OpenSSL includes a certificate management tool and shared | |
: libraries which provide various cryptographic algorithms and | |
: protocols. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tls/c/evp_md.py b/tls/c/evp_md.py | |
index ce3583e..7148747 100644 | |
--- a/tls/c/evp_md.py | |
+++ b/tls/c/evp_md.py | |
@@ -36,7 +36,7 @@ FUNCTIONS = [ | |
'const EVP_MD *EVP_sha1(void);', | |
'const EVP_MD *EVP_dss(void);', | |
'const EVP_MD *EVP_dss1(void);', | |
- 'const EVP_MD *EVP_ecdsa(void);', | |
+# 'const EVP_MD *EVP_ecdsa(void);', | |
'const EVP_MD *EVP_sha224(void);', | |
'const EVP_MD *EVP_sha256(void);', | |
'const EVP_MD *EVP_sha384(void);', | |
diff --git a/tls/c/nid.py b/tls/c/nid.py | |
index c0529e6..5ba0b9c 100644 | |
--- a/tls/c/nid.py | |
+++ b/tls/c/nid.py | |
@@ -15,11 +15,11 @@ TYPES = [ | |
'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_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;', | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment