Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 837154 Details for
Bug 1043409
[PATCH] Support for FTPS
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Add AUTH TLS command to application
sslscan.c.diff (text/plain), 2.28 KB, created by
Stephan Mueller
on 2013-12-16 09:06:40 UTC
(
hide
)
Description:
Add AUTH TLS command to application
Filename:
MIME Type:
Creator:
Stephan Mueller
Created:
2013-12-16 09:06:40 UTC
Size:
2.28 KB
patch
obsolete
>--- sslscan.c.orig 2013-12-05 10:38:55.207518292 +0100 >+++ sslscan.c 2013-12-05 10:48:17.973024980 +0100 >@@ -102,6 +102,7 @@ struct sslCheckOptions > int port; > int noFailed; > int starttls; >+ int ftpsauth; > int sslVersion; > int targets; > int pout; >@@ -300,6 +301,27 @@ int tcpConnect(struct sslCheckOptions *o > } > } > >+ if (options->ftpsauth == true) >+ { >+ memset(buffer, 0, BUFFERSIZE); >+ recv(socketDescriptor, buffer, BUFFERSIZE - 1, 0); >+ if (strncmp(buffer, "220", 3) != 0) >+ { >+ close(socketDescriptor); >+ printf("%s ERROR: The host %s on port %d did not appear to be an FTP service.%s\n", COL_RED, options->host, options->port, RESET); >+ return 0; >+ } >+ send(socketDescriptor, "AUTH TLS\r\n", 10, 0); >+ memset(buffer, 0, BUFFERSIZE); >+ recv(socketDescriptor, buffer, BUFFERSIZE - 1, 0); >+ if (strncmp(buffer, "234", 3) != 0) >+ { >+ close(socketDescriptor); >+ printf("%s ERROR: The FTPS service on %s port %d did not respond with status 234 to our AUTH TLS.%s\n", COL_RED, options->host, options->port, RESET); >+ return 0; >+ } >+ } >+ > // Return > return socketDescriptor; > } >@@ -1248,6 +1270,7 @@ int main(int argc, char *argv[]) > strcpy(options.host, "127.0.0.1"); > options.noFailed = false; > options.starttls = false; >+ options.ftpsauth = false; > options.sslVersion = ssl_all; > options.pout = false; > SSL_library_init(); >@@ -1301,6 +1324,9 @@ int main(int argc, char *argv[]) > options.starttls = true; > } > >+ else if (strcmp("--ftpsauth", argv[argLoop]) == 0) >+ options.ftpsauth = true; >+ > // SSL v2 only... > else if (strcmp("--ssl2", argv[argLoop]) == 0) > options.sslVersion = ssl_v2; >@@ -1395,6 +1421,8 @@ int main(int argc, char *argv[]) > printf(" client certificates.\n"); > printf(" %s--starttls%s If a STARTTLS is required to kick an\n", COL_GREEN, RESET); > printf(" SMTP service into action.\n"); >+ printf(" %s--ftpsauth%s If a AUTH TLS is required to kick an\n", COL_GREEN, RESET); >+ printf(" FTPS service into action.\n"); > printf(" %s--http%s Test a HTTP connection.\n", COL_GREEN, RESET); > printf(" %s--bugs%s Enable SSL implementation bug work-\n", COL_GREEN, RESET); > printf(" arounds.\n");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1043409
: 837154 |
837155