* *
% 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
24 lines
494 B
Plaintext
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
|