Closed da2ce7 closed 11 years ago
on trying to compile otlib
5> Generating Code... 5>bank-new.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in anyoption.obj 5>bank-new.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification 5>bankimp.obj : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in anyoption.obj 5>LINK : fatal error C1900: Il mismatch between 'P1' version '20100826' and 'P2' version '20081201' 5>LINK : fatal error LNK1257: code generation failed
in php script
include('otapi.php'); $otapi = new OTAPI_Basic(); $otapi_pass = new OTPassword();
$wallet = $otapi->SetWallet("wallet.xml");
if (!$otapi->WalletExists()):
die(' wallet not found
');
else:
echo(' wallet exists.
');
endif;
$otapi->ConnectServer('tBy5mL14qSQXCJK7Uz3WlTOKRP9M0JZksA3Eg7EnnQ1','T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV','certs\special\ca.crt','certs\special\client.pem','test');
(these are the default server and nym)
date_default_timezone_set('UTC');
$tm = $otapi->GetTime();
$date = date("d/m/Y H:i:s", $tm);
echo( $tm . " = " . $date . "
"); ==== shows ok
if (!$otapi->LoadWallet()):
die(' error in loading wallet
');
else:
echo(' wallet loaded.
');
endif;
it hangs on loading wallet
in log-client.log, I have
No Nym loaded but tried to connect to server. Passphrase request for: "Enter the master passphrase. (LoadPrivateKeyFromCertString)" OPENSSL_CALLBACK_FUNC(souped_up_pass_cb): Failure: (false == bGotPassword.) (Returning 0.) OTMasterKey::GetMasterPassword: Failure trying to retrieve the passphrase from the user. OPENSSL_CALLBACK_FUNC(souped_up_pass_cb): Failure: (false == bGotPassword.) (Returning 0.) OTAsymmetricKey::LoadPrivateKeyFromCertString: Error reading private key from string:
where are the functions in otapi.php where you can set :
a) server to use b) nym c) password
ie to LOG on to server
are these related to php as well ? or just for java
i am compiling the whole lot - it would be good if you place the included lib folder as well.
will let you know
On 30 November 2012 06:38, Cameron Garnham notifications@github.com wrote:
Jesmond Spiteri