• Andres Amaya Garcia's avatar
    Fix ASN1 bitstring writing · d60e3780
    Andres Amaya Garcia authored
    Refactor the function mbedtls_asn1_write_bitstring() that removes
    trailing 0s at the end of DER encoded bitstrings. The function is
    implemented according to Hanno Becker's suggestions.
    This commit also changes the functions x509write_crt_set_ns_cert_type
    and crt_set_key_usage to call the new function as the use named
    bitstrings instead of the regular bitstrings.