-
Notifications
You must be signed in to change notification settings - Fork 6
add luasec #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
flaribbit
wants to merge
1
commit into
26F-Studio:main
Choose a base branch
from
flaribbit:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add luasec #2
+521
−0
Conversation
This file contains hidden or 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
至于iOS系统,需要静态链接luasec库,然后在love2d源码中调用以下代码,理论上就可以用了。具体位置是 luaopen_ssl_core(L);
luaopen_ssl_context(L);
luaopen_ssl_x509(L);
luaopen_ssl_config(L); |
好的,websocket目前没有解决方案么 |
用旧的同步版本的自己开线程的程序,加上两行握手就行。 |
ssl是要自己加的dll还是新love自带来着 |
要自己加,love没带 |
希望框架只靠这堆lua文件就能用,还是pr到具体应用里吧,再加一个子模块 |
fe5df08
to
1606dfd
Compare
3810c86
to
08d963f
Compare
5e1131d
to
5c723cf
Compare
595d207
to
6bfeeb6
Compare
6cdd904
to
2e46d03
Compare
6132902
to
93d1942
Compare
97c5dfe
to
6c1652b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
demo
以上代码已测试可用
至于websocket,把下面的代码放到tcp握手之后,websocket握手之前,就好了
还有一个问题是,我只能保证同步的websocket程序中能用。
具体原因是我不确定luasec是否支持异步,他可能没考虑。一种可能的结果是localhost没事,远程延迟导致ssl握手炸了。