#+ccl
(write-sequence (ccl:encode-string-to-octets
value :external-format :utf-8) socket)
+ #+ccl
(write-byte 0 socket)
#+sb-unicode
(write-sequence (sb-ext:string-to-octets value :null-terminate t)
(defun encrypt-md5 (plaintext salt)
(string-downcase
(format nil "~{~2,'0X~}"
- (coerce (md5sum-sequence (concatenate 'string plaintext salt)) 'list))))
+ (coerce (md5sum-string (concatenate 'string plaintext salt)) 'list))))
(defun reopen-postgresql-connection (connection)
"Reopen the given PostgreSQL connection. Closes any existing