Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toASN1OID (0.09 sec)

  1. src/crypto/x509/oid_test.go

    				asn1OID = nil
    				break
    			}
    			asn1OID = append(asn1OID, int(v))
    		}
    
    		o, ok := oid.toASN1OID()
    		if shouldOk := asn1OID != nil; shouldOk != ok {
    			t.Errorf("(%#v).toASN1OID() = (%v, %v); want = (%v, %v)", oid, o, ok, asn1OID, shouldOk)
    			continue
    		}
    
    		if asn1OID != nil && !o.Equal(asn1OID) {
    			t.Errorf("(%#v).toASN1OID() = (%v, true); want = (%v, true)", oid, o, asn1OID)
    		}
    
    		if v.ints != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. src/crypto/x509/parser.go

    				if err != nil {
    					return err
    				}
    				out.PolicyIdentifiers = make([]asn1.ObjectIdentifier, 0, len(out.Policies))
    				for _, oid := range out.Policies {
    					if oid, ok := oid.toASN1OID(); ok {
    						out.PolicyIdentifiers = append(out.PolicyIdentifiers, oid)
    					}
    				}
    			default:
    				// Unknown extensions are recorded if critical.
    				unhandled = true
    			}
    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