5231ba6 libsss_certmap: Accept certificate with data before header

2 files Authored by dkupka 7 years ago, Committed by lslebodn 7 years ago,
    libsss_certmap: Accept certificate with data before header
    
    According to RFC 7468 parser must not fail when some data are present
    before the encapsulation boundary. sss_cert_pem_to_der didn't respect
    this and refused valid input. Changing it's code to first locate
    the certificate header fixes the issue.
    
    Resolves:
    https://pagure.io/SSSD/sssd/issue/3354
    
    Reviewed-by: Sumit Bose <sbose@redhat.com>
    Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
    
        
file modified
+5 -4