Codebase list sslscan / 9248262
Imported Upstream version 1.10.6 Sophie Brun 8 years ago
5 changed file(s) with 98 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 # object files
1 *.o
2 *.obj
3
4 # compiled binary
5 sslscan
6 sslscan.exe
7
8 # debian build of openssl
9 openssl-*/
10 openssl_*
11 libcrypto*
12 libssl*
13
14 # custom openssl build
15 openssl/
0 language: c
1
2 compiler:
3 - clang
4 - gcc
5
6 env:
7 - TARGET=sslscan
8 - TARGET=static
9
10 script:
11 - make $TARGET CC=$CC
12
13 matrix:
14 exclude:
15 # OpenSSL can't be compiled out-of-the box with clang, see
16 # http://wiki.openssl.org/index.php/Compilation_and_Installation#Modifying_Build_Settings
17 - compiler: clang
18 env: TARGET=static
00 Changelog
11 =========
2
3 Version: 1.10.6
4 Date : 06/08/2015
5 Author : rbsec <[email protected]>
6 Changes: The following are a list of changes
7 > Fix --sleep only working for whole seconds (credit dmke)
8 > Fix compiling against OpenSSL 0.9.8 (credit aclemons)
9 > Flag expired certificates (credit jacktrice)
210
311 Version: 1.10.5
412 Date : 07/07/2015
3131 * Experimental Windows support (credit jtesta).
3232 * Display EC curve names and DHE key lengths with OpenSSL >= 1.0.2 (--no-cipher-details)
3333 * Flag weak DHE keys with OpenSSL >= 1.0.2 (--cipher-details)
34 * Flag expired certificates
3435
3536 ### Building on Windows
3637 Thanks to a patch by jtesta, sslscan can now be compiled on Windows. This can
19131913 }
19141914 }
19151915 }
1916
1917 // Check for certificate expiration
1918 time_t *ptime;
1919 int timediff;
1920 ptime = NULL;
1921
1922 printf("\nNot valid before: ");
1923 timediff = X509_cmp_time(X509_get_notBefore(x509Cert), ptime);
1924 // Certificate isn't valid yet
1925 if (timediff > 0)
1926 {
1927 printf("%s", COL_RED);
1928 }
1929 else
1930 {
1931 printf("%s", COL_GREEN);
1932 }
1933 ASN1_TIME_print(stdoutBIO, X509_get_notBefore(x509Cert));
1934 printf("%s", RESET);
1935
1936 if (options->xmlOutput) {
1937 printf_xml(" <not-valid-before>");
1938 ASN1_TIME_print(fileBIO, X509_get_notBefore(x509Cert));
1939 printf_xml("</not-valid-before>\n");
1940 }
1941
1942 printf("\nNot valid after: ");
1943 timediff = X509_cmp_time(X509_get_notAfter(x509Cert), ptime);
1944 // Certificate has expired
1945 if (timediff < 0)
1946 {
1947 printf("%s", COL_RED);
1948 }
1949 else
1950 {
1951 printf("%s", COL_GREEN);
1952 }
1953 ASN1_TIME_print(stdoutBIO, X509_get_notAfter(x509Cert));
1954 printf("%s", RESET);
1955 if (options->xmlOutput) {
1956 printf_xml(" <not-valid-after>");
1957 ASN1_TIME_print(fileBIO, X509_get_notAfter(x509Cert));
1958 printf_xml("</not-valid-after>\n");
1959 if (timediff < 0)
1960 {
1961 printf_xml(" <expired>true</expired>\n");
1962 }
1963 else
1964 {
1965 printf_xml(" <expired>false</expired>\n");
1966 }
1967 }
1968 printf("\n");
1969
19161970 // Free X509 Certificate...
19171971 X509_free(x509Cert);
19181972 }