def ssl.answer

bend-kit-postgres@0.3.0.0 · postgres.bend:388

import bend-kit-postgres@0.3.0.0/postgres.bend as Postgres
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

388# The answer is one byte, read alone so no byte sent before the TLS handshake is taken as data.
389def ssl.answer(+key: String, +host: String, +user: String, +pass: String, +db: String, +ms: U32, a: Socket & Result<&1, &1, U32 & String, U32 & Array<U32>>) -> IO(Result<&1, &1, Failure, Conn>):
390  (s, r) = a
391  match r:
392    case Fail{(code, why)}:
393      plain.fail(s, IoFail{code, why})
394    case Done{(+len, words)}:
395      ssl.byte(s, key, host, user, pass, db, ms, Bytes.get(Bytes.Bytes{len, words}, 0))

Uses (14)

Used by (1)