Pudu programming language
Menu
API reference

Std.Pem.decodeAll

1 declaration

fn

decodeAll: Str -> Result[Array[Std.Pem.Block], Std.Pem.PemError]

Every armored block in the text, in order.

Text between blocks is ignored, which is where a certificate bundle keeps its comments. Inside a block, whitespace in the body is ignored and anything else must be base64; header lines (Proc-Type: and the like) are refused as a bad body, because they mark the legacy encrypted form that this reader does not decrypt and must not hand back as plain bytes.

Back to Std.PemSearch related declarations