Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseASN1String (0.12 sec)

  1. src/crypto/x509/parser_test.go

    			out, err := parseASN1String(tc.tag, tc.value)
    			if err != nil && err.Error() != tc.expectedErr {
    				t.Fatalf("parseASN1String returned unexpected error: got %q, want %q", err, tc.expectedErr)
    			} else if err == nil && tc.expectedErr != "" {
    				t.Fatalf("parseASN1String didn't fail, expected: %s", tc.expectedErr)
    			}
    			if out != tc.expected {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 17:18:21 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. src/crypto/x509/parser.go

    		// one of which will not expire until 2027.
    		b == '&'
    }
    
    // parseASN1String parses the ASN.1 string types T61String, PrintableString,
    // UTF8String, BMPString, IA5String, and NumericString. This is mostly copied
    // from the respective encoding/asn1.parse... methods, rather than just
    // increasing the API surface of that package.
    func parseASN1String(tag cryptobyte_asn1.Tag, value []byte) (string, error) {
    	switch tag {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top