matusso / libssllabs Goto Github PK
View Code? Open in Web Editor NEWC++ library to work with SSL (ssllabs)
License: MIT License
C++ library to work with SSL (ssllabs)
License: MIT License
Hey matusso, I tried using your library and it is giving some sort of rapidjson error in document.h:1631
#include <iostream>
//#include <cstdlib>
#include <string>
using namespace ssllabs;
using namespace std;
int main(int argc, char** argv)
{
ssllabs::SSLlabs ssllabsObject;
string data;
labsReport_t report;
// ssllabsObject.analyze("www.google.com", data);
// cout<<data;
ssllabsObject.analyze("www.google.com", report);
cout<<"HOST: "<<report.Host<<"\n";
cout<<"PORT: "<<report.Port<<"\n";
cout<<"PROTOCOL: "<<report.Protocol<<"\n";
cout<<"isPublic: "<<report.IsPublic<<"\n";
cout<<"STATUS: "<<report.Status<<"\n";
cout<<"STARTTIME: "<<report.StartTime<<"\n";
cout<<"TESTTIME: "<<report.TestTime<<"\n";
cout<<"ENGINE VERSION: "<<report.EngineVersion<<"\n";
cout<<"CRITERIA VERSION: "<<report.CriteriaVersion<<"\n";
vector<labsEndpoint_t>::iterator it;
int counter = 1;
for(it = report.Endpoints.begin() ; it != report.Endpoints.end(); it++)
{
cout<<"ENDPOINT "<<counter<<"\n";
labsEndpoint_t endpoint = *it;
labsEndpoint_t endpoint2;
// string endpoint2;
ssllabsObject.getEndpointData("www.google.com", endpoint.IpAddress, endpoint2);
cout<<"\tIP ADDRESS: "<<endpoint2.IpAddress<<"\n";
cout<<"\tSERVER NAME: "<<endpoint2.ServerName<<"\n";
cout<<"\tSTATUS MESSAGE: "<<endpoint2.StatusMessage<<"\n";
cout<<"\tGRADE: "<<endpoint2.Grade<<"\n";
cout<<"\tGRADE TRUST IGNORED: "<<endpoint2.GradeTrustIgnored<<"\n";
cout<<"\tHAS WARNINGS: "<<endpoint2.HasWarnings<<"\n";
cout<<"\tISEXCEPTIONAL: "<<endpoint2.IsExceptional<<"\n";
cout<<"\tPROGRESS: "<<endpoint2.Progress<<"\n";
cout<<"\tDURATION: "<<endpoint2.Duration<<"\n";
cout<<"\tETA: "<<endpoint2.Eta<<"\n";
cout<<"\tDELEGATION: "<<endpoint2.Delegation<<"\n";
cout<<"\t\tHOST START TIME: "<<endpoint2.Details.HostStartTime<<"\n";
cout<<"\t\tKEY INFORMATION\n";
cout<<"\t\t\tSIZE: "<<endpoint2.Details.Key.Size<<"\n";
cout<<"\t\t\tALGORTIHM: "<<endpoint2.Details.Key.Algorithm<<"\n";
cout<<"\t\t\tDEBIAN FLAW: "<<endpoint2.Details.Key.DebianFlaw<<"\n";
cout<<"\t\t\tSTRENGTH: "<<endpoint2.Details.Key.Strength<<"\n";
cout<<"\t\t\tQ: "<<endpoint2.Details.Key.Q<<"\n";
// cout<<endpoint2;
counter++;
}
return 0;
}
**OUTPUT:**
HOST: www.google.com
PORT: 443
PROTOCOL: HTTP
isPublic: 0
STATUS: READY
STARTTIME: 1484298498233
TESTTIME: 1484298582709
ENGINE VERSION: 1.26.5
CRITERIA VERSION: 2009m
ENDPOINT 1
programlibssllabs: /ssllabs/libssllabs-master/src/../include/rapidjson/document.h:1631: int rapidjson::GenericValue<Encoding, Allocator>::GetInt() const [with Encoding = rapidjson::UTF8<char>, Allocator = rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>]: Assertion `data_.f.flags & kIntFlag' failed.
RUN FINISHED; Aborted; core dumped; real time: 3s; user: 70ms; system: 80ms
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.