Hi Sven,
thanks for the explanation. If the problem would be in Smalltalk I could _try_ to find a solution but I am not able to go into primitives.
Concerning my workaround:
If remove the line where the exception is thrown in >>fillBytes:startingAt:count:��
"processedCount < 0 ifTrue: [ ^ self sslException: 'decrypt failed' code: processedCount ]."
Then it works. So, it seems that ignoring the exception would fix the problem for me:
[| theZnClient |
theZnClient := ZnClient new
systemPolicy ;
https;
path: 'oauth/token?grant_type=client_credentials';
username: 'spesenfuchs' password: 'asdf';
accept: ZnMimeType applicationJson;
get. ] on: Error
do: [ :ex | ex resume ].
But this needs that the exception is resumable.
So could you perhaps make the exception resumable?
ZdcSecureSocketStream>>sslException: text code: code
self error:��
(String streamContents: [ :stream |
stream << 'SSL Exception: ' << text << ' [code:'.
stream print: code.
stream << ']' ])��
>>error: uses Error and this is not resumable.
Could you make the Exception resumable?
Then perhaps Johan could use resume, to?
What is your opinion about this? Do I miss something here?
Regards
Sabine
��