Imported Upstream version 1.10.6
Sophie Brun
8 years ago
|
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
|
0 | 0 |
Changelog
|
1 | 1 |
=========
|
|
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)
|
2 | 10 |
|
3 | 11 |
Version: 1.10.5
|
4 | 12 |
Date : 07/07/2015
|
31 | 31 |
* Experimental Windows support (credit jtesta).
|
32 | 32 |
* Display EC curve names and DHE key lengths with OpenSSL >= 1.0.2 (--no-cipher-details)
|
33 | 33 |
* Flag weak DHE keys with OpenSSL >= 1.0.2 (--cipher-details)
|
|
34 |
* Flag expired certificates
|
34 | 35 |
|
35 | 36 |
### Building on Windows
|
36 | 37 |
Thanks to a patch by jtesta, sslscan can now be compiled on Windows. This can
|
1913 | 1913 |
}
|
1914 | 1914 |
}
|
1915 | 1915 |
}
|
|
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 |
|
1916 | 1970 |
// Free X509 Certificate...
|
1917 | 1971 |
X509_free(x509Cert);
|
1918 | 1972 |
}
|