Comments (3)
We are also seeing this problem hitting in our Travis tests on Linux. There are two errors, one to do with the literal and one to do with an unresolved identifier.
/usr/include/openssl/bn.h:187:19: error: integer literal is too large to be represented in any integer type
#define BN_MASK (0xffffffffffffffffffffffffffffffffLL)
^
/tmp/87c06c14666f7ad8d15dbe70e37233d0b50cc764/notes/Packages/SSLService-0.12.25/Sources/SSLService.swift:817:31: error: use of unresolved identifier 'SSL_CTRL_SET_ECDH_AUTO'
SSL_CTX_ctrl(context, SSL_CTRL_SET_ECDH_AUTO, 1, nil)
^~~~~~~~~~~~~~~~~~~~~~
OpenSSL.SSL_CTRL_SET_READ_AHEAD:1:12: note: did you mean 'SSL_CTRL_SET_READ_AHEAD'?
public var SSL_CTRL_SET_READ_AHEAD: Int32 { get }
^
OpenSSL.SSL_CTRL_SET_SRP_ARG:1:12: note: did you mean 'SSL_CTRL_SET_SRP_ARG'?
public var SSL_CTRL_SET_SRP_ARG: Int32 { get }
^
<unknown>:0: error: build had 1 command failures
error: exit(1): /home/travis/build/IBM-Swift/generator-swiftserver/swift-3.0-RELEASE-ubuntu14.04/usr/bin/swift-build-tool -f /tmp/87c06c14666f7ad8d15dbe70e37233d0b50cc764/notes/.build/debug.yaml
1) "before all" hook
I see that this file has been added .swift-build-linux
:
swift build -Xswiftc -DOPENSSL_TOO_OLD
If adding that option to swift build resolves the problem, then it looks like we have added a requirement to pass an option to any project that uses Kitura. :(
from bluesslservice.
I agree with @tunniclm that adding a compile flag is not the way to fix this.
from bluesslservice.
Removed the compile flag for the default. The compile flag still exists in a different form. It needs to be explicitly set to enable the functionality and this is documented in the README.md. The functionality is provided by OpenSSL 1.0.2 or higher, this rules out use of it on Ubuntu 14.04.
from bluesslservice.
Related Issues (20)
- Data sending slowed down after using BlueSSLService HOT 7
- buil HOT 1
- Does not work with macOS in Terminal HOT 6
- Failing build under Linux HOT 7
- PKCS12 file not specified HOT 3
- iOS Product Target HOT 1
- Can we use an asymmetric key pair instead of a p12 for iOS? HOT 2
- Documentation example showing a TLS client needed HOT 4
- No such module 'SSLService' HOT 3
- BlueSSLService cannot be cross-compiled HOT 1
- Want to enable Pre-Shared Key communication using SSL Service class HOT 1
- BlueSSLService client cannot connect to stunnel server on windows HOT 1
- .
- Socket.read(...) unexpectedly returns 0 HOT 3
- The SSL methods are deprecated and not supported in iOS13 and Mac-catalina HOT 2
- Problem with expired certificate
- Socket does not write until data is read HOT 2
- Socket error: PKCS12 file not specified. HOT 1
- SSLRead bad certificate
- `verifyCallback` not being called
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluesslservice.