Indy10 +https



  • Hallo zusammen

    Hat sich schon mal jemand mit Indy10 an einer https Verbindung versucht?
    Habe Indy10 installiert, und sobald ich das "Icon" von IdSSLIOHandlerSocketOpenSSL auf mein Form ziehe bekomme ich beim kompilieren die ersten Fehler.

    [C++] Unit1.cpp(1): 
    [C++] Gepufferte vorcompilierte Header geladen
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(1336): E2275 { erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(1336): E2321 Deklaration deklariert weder ein Tag noch einen Bezeichner
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(1337): E2293 ) erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(1498): E2293 ) erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
        IdSSLOpenSSLHeaders.hpp(1477): class GENERAL_NAME_union
        IdSSLOpenSSLHeaders.hpp(1480): class GENERAL_NAME_union:: 
        IdSSLOpenSSLHeaders.hpp(1497): class GENERAL_NAME_union:: :: 
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(1528): E2293 ) erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
        IdSSLOpenSSLHeaders.hpp(1477): class GENERAL_NAME_union
        IdSSLOpenSSLHeaders.hpp(1480): class GENERAL_NAME_union:: 
        IdSSLOpenSSLHeaders.hpp(1527): class GENERAL_NAME_union:: :: 
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(1952): E2275 { erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(1958): E2321 Deklaration deklariert weder ein Tag noch einen Bezeichner
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(1961): E2257 , erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(2028): E2293 ) erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
        IdSSLOpenSSLHeaders.hpp(2025): class X509_REQ_INFO
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(2052): E2293 ) erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
        IdSSLOpenSSLHeaders.hpp(2048): class X509_CINF
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(2054): E2293 ) erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
        IdSSLOpenSSLHeaders.hpp(2048): class X509_CINF
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(2108): E2293 ) erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
        IdSSLOpenSSLHeaders.hpp(2105): class X509_CRL_INFO
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(2595): E2293 ) erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
        IdSSLOpenSSLHeaders.hpp(2594): class PKCS7_ISSUER_AND_SERIAL
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(2603): E2275 { erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(2613): E2321 Deklaration deklariert weder ein Tag noch einen Bezeichner
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
    [C++ Fehler] IdSSLOpenSSLHeaders.hpp(2616): E2293 ) erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(28): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSLHeaders.hpp
        IdSSLOpenSSLHeaders.hpp(22): namespace Idsslopensslheaders
    [C++ Fehler] IdSSLOpenSSL.hpp(364): E2272 Bezeichner erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(42): namespace Idsslopenssl
        IdSSLOpenSSL.hpp(359): class TIdX509Name
    [C++ Fehler] IdSSLOpenSSL.hpp(364): E2293 ) erwartet
      Vollständiger Parser-Kontext
        Unit1.cpp(6): #include C:\Projects\_CPP\z_Test\MDO\Unit1.h
        Unit1.h(20): #include c:\program files\borland\cbuilder6\Source\Indy10\C6\IdSSLOpenSSL.hpp
        IdSSLOpenSSL.hpp(42): namespace Idsslopenssl
        IdSSLOpenSSL.hpp(359): class TIdX509Name
    

    Hier ein Ausschnitt der IdSSLOpenSSLHeaders.pas:

    typedef X509_POLICY_CACHE *PX509_POLICY_CACHE;
    
    struct X509;
    typedef X509 *PX509;
    
    typedef PX509 *PPX509;
    
    struct X509_CRL;
    typedef X509_CRL *PX509_CRL;
    
    struct X509_NAME; //Dies ist Zeile 1336
    typedef X509_NAME *PX509_NAME;
    
    struct X509_NAME_ENTRY;
    typedef X509_NAME_ENTRY *PX509_NAME_ENTRY;
    
    struct X509_REQ;
    typedef X509_REQ *PX509_REQ;
    
    struct X509_REQ_INFO;
    typedef X509_REQ_INFO *PX509_REQ_INFO;
    
    typedef PX509_REQ_INFO *PPX509_REQ_INFO;
    
    typedef STACK *PSTACK_OF_X509_NAME_ENTRY;
    
    typedef STACK *PSTACK_OF_X509_REVOKED;
    
    typedef PSTACK *PPSTACK_OF_X509_REVOKED;
    
    typedef PX509_NAME_ENTRY *PPX509_NAME_ENTRY;
    

    Habe leider keine Ahnung was hier schief läuft.
    Kann mir irgendjemand helfen?

    Vielen Dank im voraus.
    MfG Stephan



  • Ohne mir Deine Fehlerbeschreibung genauer angeschaut zu haben, kurz vorweg:
    Indy 10 ist bei einigen BCB-Versionen nicht wirklich lauffähig. Welchen BCB hast Du denn? Evtl. mal mit der Version 9 versuchen.



  • Ich seh grad, Du nutzt die Version 6 des BCB. Da läuft Indy 10 nicht -> Indy 9.



  • Hallo zusammen

    @Rostfrei[]
    Warum sollte Indy10 nicht auf dem BCB6 laufen?
    Kann dies eventuell noch jemand bestätigen?

    Habe hier schon mindestens einen Beitrag gesehen wo Indy10 lief.
    Indy9 kann ich nicht vewenden, da ich webdav benötige.

    MfG Stephan



  • Stephan schrieb:

    Hallo zusammen

    @Rostfrei[]
    Warum sollte Indy10 nicht auf dem BCB6 laufen?
    Kann dies eventuell noch jemand bestätigen?

    Ist hier bekannt und gibt schon einige Threads zum Thema.

    Habe hier schon mindestens einen Beitrag gesehen wo Indy10 lief.
    Indy9 kann ich nicht vewenden, da ich webdav benötige.

    Wenn du recht hast dann nur auf einen neueren Builder as BCB6.

    bis bald
    akari



  • Hallo zusammen

    Dies bedeutet dann jedoch, daß nur ein Teil nicht auf dem BCB6 läuft. Ich hab nämlich schon erfolgreich eine http Verbindung aufgebaut.

    In diesem Thread http://www.c-plusplus.net/forum/viewtopic-var-p-is-773761.html hat GIWIG nicht explizit gesagt, daß er BCB6 verwendet, jedoch ich habe es so verstanden.
    Wenn dies nicht funktioniert mit Indy10, kann mir dann jemand eventuell ein alternative WebDav Komponente/Library nennen, welche auch https kann?

    MfG Stephan


Anmelden zum Antworten