HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix regeneration of multi-file dependencies
[hcoop/domtool2.git]
/
src
/
openssl.sml
diff --git
a/src/openssl.sml
b/src/openssl.sml
index
aad3925
..
26001cc
100644
(file)
--- a/
src/openssl.sml
+++ b/
src/openssl.sml
@@
-266,9
+266,15
@@
fun context printErr (chain, key, root) =
context
end
context
end
-fun connect (context, hostname) =
+fun connect
printErr
(context, hostname) =
let
val bio = F_OpenSSL_SML_new_ssl_connect.f' context
let
val bio = F_OpenSSL_SML_new_ssl_connect.f' context
+
+ val ssl_err =
+ if printErr then
+ ssl_err
+ else
+ (fn _ => ())
in
if C.Ptr.isNull' bio then
(ssl_err ("Error initializating connection to " ^ hostname);
in
if C.Ptr.isNull' bio then
(ssl_err ("Error initializating connection to " ^ hostname);