Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
0991-public_key-trim-the-whitespace-characters-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0991-public_key-trim-the-whitespace-characters-when-pem_d.patch of Package erlang
From fc3a53863e586da6bdc8377af6a95315e074d073 Mon Sep 17 00:00:00 2001 From: Ao Song <andy@erlang.org> Date: Wed, 26 Aug 2020 18:06:54 +0200 Subject: [PATCH] public_key: trim the whitespace characters when pem_decode Change-Id: Id37356712c7b9801b68291d080e561ca9a3c3782 --- lib/public_key/src/pubkey_pem.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/public_key/src/pubkey_pem.erl b/lib/public_key/src/pubkey_pem.erl index 2979f4e172..86c29a1820 100644 --- a/lib/public_key/src/pubkey_pem.erl +++ b/lib/public_key/src/pubkey_pem.erl @@ -112,7 +112,8 @@ decode_pem_entries([<<>>], Entries) -> lists:reverse(Entries); decode_pem_entries([<<>> | Lines], Entries) -> decode_pem_entries(Lines, Entries); -decode_pem_entries([Start| Lines], Entries) -> +decode_pem_entries([StartLine | Lines], Entries) -> + Start = string:trim(StartLine), case pem_end(Start) of undefined -> decode_pem_entries(Lines, Entries); -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor