projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r10074: Add mediumint
[clsql.git]
/
db-postgresql-socket
/
postgresql-socket-api.lisp
diff --git
a/db-postgresql-socket/postgresql-socket-api.lisp
b/db-postgresql-socket/postgresql-socket-api.lisp
index dabaad923b8bbd59886924ef7ceba182d97fffdf..ba0cd221bbdc547c920d174bb023c22cdea58b3e 100644
(file)
--- a/
db-postgresql-socket/postgresql-socket-api.lisp
+++ b/
db-postgresql-socket/postgresql-socket-api.lisp
@@
-214,7
+214,7
@@
socket interface"
;;; Support for encrypted password transmission
#-scl
;;; Support for encrypted password transmission
#-scl
-(eval-when (
compile eval load
)
+(eval-when (
:compile-toplevel :load-toplevel :execute
)
(defvar *crypt-library-loaded* nil)
(unless *crypt-library-loaded*
(defvar *crypt-library-loaded* nil)
(unless *crypt-library-loaded*
@@
-458,14
+458,16
@@
connection, if it is still open."
(3
(send-unencrypted-password-message
socket
(3
(send-unencrypted-password-message
socket
- (postgresql-connection-password connection)))
+ (postgresql-connection-password connection))
+ (force-output socket))
(4
(let ((salt (make-string 2)))
(read-socket-sequence salt socket)
(send-encrypted-password-message
socket
(crypt-password
(4
(let ((salt (make-string 2)))
(read-socket-sequence salt socket)
(send-encrypted-password-message
socket
(crypt-password
- (postgresql-connection-password connection) salt))))
+ (postgresql-connection-password connection) salt)))
+ (force-output socket))
(5
(let ((salt (make-string 4)))
(read-socket-sequence salt socket)
(5
(let ((salt (make-string 4)))
(read-socket-sequence salt socket)
@@
-474,7
+476,8
@@
connection, if it is still open."
(pwd (encrypt-md5 pwd2 salt)))
(send-encrypted-password-message
socket
(pwd (encrypt-md5 pwd2 salt)))
(send-encrypted-password-message
socket
- (concatenate 'string "md5" pwd)))))
+ (concatenate 'string "md5" pwd))))
+ (force-output socket))
(t
(error 'postgresql-login-error
:connection connection
(t
(error 'postgresql-login-error
:connection connection