Files
harbour-core/contrib/hbssl/tests/bio.prg
Viktor Szakats 58faf91453 2016-01-14 19:17 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
* *
    % remove brandings and homepage [1] from copyright header. Pass 1 - using script.
      [1] nobody has access to it anymore AFAIK - and it's also just
          a redirect since long
    ! update url in copyright header
    ; this should make the diff between 3.4 and 3.2 easier to manage
2016-01-14 19:18:17 +01:00

24 lines
494 B
Plaintext

/*
* Copyright 2009 Viktor Szakats (vszakats.net/harbour)
*/
#require "hbssl"
PROCEDURE Main()
LOCAL bio
SSL_init()
? bio := BIO_new_fd( 1, HB_BIO_NOCLOSE )
? "BIO_WRITE", BIO_write( bio, "Hello world!" + hb_eol() )
? "BIO_FLUSH", BIO_flush( bio )
? "BIO_FREE", BIO_free( bio )
? bio := BIO_new_file( "bio_test.txt", "a+" )
? "BIO_WRITE", BIO_write( bio, "Hello world!" + hb_eol() )
? "BIO_FLUSH", BIO_flush( bio )
? "BIO_FREE", BIO_free( bio )
RETURN