Skip to content

Releases: Brandon-T/ProSocks

ProSocks v0.6

18 Aug 23:33
Compare
Choose a tag to compare

Updated SMTP call to work with PascalScript Strings.

Pascal:

var
  S: SSLSocket;

begin
  S.Init();
  S.SetVerbose(True);
  S.SetSecurityPolicy(false, false, true);
  S.SMTP('smtps://smtp.gmail.com', '[email protected]', 'password', 'SenderName', '[email protected]', '', '', 'Subject', 'Message', '', '', '');
  S.Free();
end.

C:

#include <SSLSocket.h>

int main(int argc, const char * argv[])
{
    SSLSocket sock = {0};
    SSLSocket_Init(&sock);
    SSLSock_SetVerbose(&sock, true);
    SSLSocket_SetSecurityPolicy(&sock, false, false, true);
    SSLSocket_SMTP(&sock, "smtps://smtp.gmail.com", "[email protected]", "password", "SenderName", "[email protected]", NULL, NULL, "Subject", "Message", NULL, NULL, NULL);
    SSLSocket_Free(&sock);
}

ProSocks v0.5

29 Nov 03:24
Compare
Choose a tag to compare
  • Uses tagged record syntax.
  • Updated compile flags and pre-processor flags for compiling on both Windows, OSX, and Linux.

Pascal:

Function GetPage(var url: String): String;
var
    sock: SSLSocket;
    data: MemoryStruct;
begin
    sock.Init();
    sock.setURL(url);
    sock.setSecurityPolicy(false, false, true);
    sock.setURLFollow(false);
    sock.doGet(data);

    SetLength(result, data.size);
    MemMove(data.memory^, result[1], data.size);

    sock.Free();
end;

begin
    writeln(GetPage('https://github.com/Brandon-T/ProSocks');
end;

C:

#include <SSLSocket.h>

int main(int argc, const char * argv[])
{
    SSLSocket sock = {0};
    SSLSocket_Init(&sock);
    SSLSocket_SetSecurityPolicy(&sock, false, false, true);
    SSLSocket_SetURLFollow(&sock, true);
    SSLSocket_SetURL(&sock, "https://github.com/Brandon-T/ProSocks");

    ProMemoryStruct* mem = SSLSocket_DoPost(&sock);

    printf("%.*s", mem->size, mem->data);

    SSLSocket_Free(&sock);
}

ProSocks v0.4

11 Oct 15:07
Compare
Choose a tag to compare
  • Fixes email error.
  • First OSX Release.
  • Fixes issue in AddParameters function.

ProSocks v0.3

10 Jan 02:06
Compare
Choose a tag to compare
  • Fixed Header imports.
  • Fixed Pre-processor condition.
  • Fixed Memory Errors due to invalid pointer cast.
  • Changed boolean condition to long for curl's requirements.

ProSocks v0.2

21 Oct 03:34
Compare
Choose a tag to compare
  • Added exports for libcurl
  • Easier to use API
  • Support for PascalScript

ProSocks v0.1

08 Oct 22:52
Compare
Choose a tag to compare
Removed bad export.