Giter VIP home page Giter VIP logo

libssllabs's People

Contributors

matusso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

libssllabs's Issues

Getting rapisJson error while using the library

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.