Skip to content
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

convert service name to port number #2446

Conversation

sanderjo
Copy link

@sanderjo sanderjo commented Dec 4, 2023

Works with

$ ./testssl.sh news.newshosting.com:nntps

@sanderjo
Copy link
Author

sanderjo commented Dec 4, 2023

Closes #2445

@drwetter
Copy link
Owner

drwetter commented Dec 5, 2023

Hi,
thanks first. Doesn't work on MacOS though.

 /tmp  getent services | wc -l
       0
 /tmp  

@drwetter
Copy link
Owner

drwetter commented Dec 5, 2023

MacOS has /etc/services though, don't know about WSL? We need to put some thought in this, so that the code doesn't become ugly and it works on every OS supported and on docker.

And we work around a weird bug in the old openssl we're using. I anyway wanted to complete the sieve implementation. Don't know how difficult it is yet to add/backport the service resolution into it.

Fallback would be a private LUT (lookup table) , i.e. ports2starttls() kind of reversed.

@drwetter
Copy link
Owner

drwetter commented Dec 9, 2023

see comment in the issue

@drwetter drwetter closed this Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants