_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c31100 | train | // AuditPanic catches panicking executables. This method should be added
// in a defer statement as early as possible | {
"resource": ""
} | ||
c31101 | train | // Err level messages are always marked with the audit tag, for special handling
// at the upstream system logger. | {
"resource": ""
} | ||
c31102 | train | // Errf level messages are always marked with the audit tag, for special handling
// at the upstream system logger. | {
"resource": ""
} | ||
c31103 | train | // Warning level messages pass through normally. | {
"resource": ""
} | ||
c31104 | train | // Warningf level messages pass through normally. | {
"resource": ""
} | ||
c31105 | train | // Info level messages pass through normally. | {
"resource": ""
} | ||
c31106 | train | // Infof level messages pass through normally. | {
"resource": ""
} | ||
c31107 | train | // Debug level messages pass through normally. | {
"resource": ""
} | ||
c31108 | train | // Debugf level messages pass through normally. | {
"resource": ""
} | ||
c31109 | train | // AuditInfo sends an INFO-severity message that is prefixed with the
// audit tag, for special handling at the upstream system logger. | {
"resource": ""
} | ||
c31110 | train | // AuditInfof sends an INFO-severity message that is prefixed with the
// audit tag, for special handling at the upstream system logger. | {
"resource": ""
} | ||
c31111 | train | // AuditObject sends an INFO-severity JSON-serialized object message that is prefixed
// with the audit tag, for special handling at the upstream system logger. | {
"resource": ""
} | ||
c31112 | train | // AuditErr can format an error for auditing; it does so at ERR level. | {
"resource": ""
} | ||
c31113 | train | // AuditErrf can format an error for auditing; it does so at ERR level. | {
"resource": ""
} | ||
c31114 | train | // checkCAA performs a CAA lookup & validation for the provided identifier. If
// the CAA lookup & validation fail a problem is returned. | {
"resource": ""
} | ||
c31115 | train | // returns true if any CAA records have unknown tag properties and are flagged critical. | {
"resource": ""
} | ||
c31116 | train | // Filter CAA records by property | {
"resource": ""
} | ||
c31117 | train | // checkAccountURI checks the specified full account URI against the
// given accountID and a list of valid prefixes. | {
"resource": ""
} | ||
c31118 | train | // RandomString returns a randomly generated string of the requested length. | {
"resource": ""
} | ||
c31119 | train | // Fingerprints
// Fingerprint256 produces an unpadded, URL-safe Base64-encoded SHA256 digest
// of the data. | {
"resource": ""
} | ||
c31120 | train | // KeyDigest produces a padded, standard Base64-encoded SHA256 digest of a
// provided public key. | {
"resource": ""
} | ||
c31121 | train | // KeyDigestEquals determines whether two public keys have the same digest. | {
"resource": ""
} | ||
c31122 | train | // PublicKeysEqual determines whether two public keys have the same marshalled
// bytes as one another | {
"resource": ""
} | ||
c31123 | train | // ValidSerial tests whether the input string represents a syntactically
// valid serial number, i.e., that it is a valid hex string between 32
// and 36 characters long. | {
"resource": ""
} | ||
c31124 | train | // UniqueLowerNames returns the set of all unique names in the input after all
// of them are lowercased. The returned names will be in their lowercased form
// and sorted alphabetically. | {
"resource": ""
} | ||
c31125 | train | // LoadCertBundle loads a PEM bundle of certificates from disk | {
"resource": ""
} | ||
c31126 | train | // LoadCert loads a PEM certificate specified by filename or returns an error | {
"resource": ""
} | ||
c31127 | train | // IsASCII determines if every character in a string is encoded in
// the ASCII character set. | {
"resource": ""
} | ||
c31128 | train | // This file defines functions to translate between the protobuf types and the
// code types. | {
"resource": ""
} | ||
c31129 | train | // orderValid checks that a corepb.Order is valid. In addition to the checks
// from `newOrderValid` it ensures the order ID, the BeganProcessing fields
// and the Created field are not nil. | {
"resource": ""
} | ||
c31130 | train | // newOrderValid checks that a corepb.Order is valid. It allows for a nil
// `order.Id` because the order has not been assigned an ID yet when it is being
// created initially. It allows `order.BeganProcessing` to be nil because
// `sa.NewOrder` explicitly sets it to the default value. It allows
// `order.Created` to b... | {
"resource": ""
} | ||
c31131 | train | // New constructs a Policy Authority. | {
"resource": ""
} | ||
c31132 | train | // SetHostnamePolicyFile will load the given policy file, returning error if it
// fails. It will also start a reloader in case the file changes. It supports
// YAML and JSON serialization formats and chooses the correct unserialization
// method based on the file extension which must be ".yaml", ".yml", or ".json". | {
"resource": ""
} | ||
c31133 | train | // processHostnamePolicy handles loading a new blockedNamesPolicy into the PA.
// All of the policy.ExactBlockedNames will be added to the
// wildcardExactBlocklist by processHostnamePolicy to ensure that wildcards for
// exact blocked names entries are forbidden. | {
"resource": ""
} | ||
c31134 | train | // checkWildcardHostList checks the wildcardExactBlocklist for a given domain.
// If the domain is not present on the list nil is returned, otherwise
// errPolicyForbidden is returned. | {
"resource": ""
} | ||
c31135 | train | // ChallengesFor makes a decision of what challenges are acceptable for
// the given identifier. | {
"resource": ""
} | ||
c31136 | train | // ChallengeTypeEnabled returns whether the specified challenge type is enabled | {
"resource": ""
} | ||
c31137 | train | // NewNonceService constructs a NonceService with defaults | {
"resource": ""
} | ||
c31138 | train | // Nonce provides a new Nonce. | {
"resource": ""
} | ||
c31139 | train | // Valid determines whether the provided Nonce string is valid, returning
// true if so. | {
"resource": ""
} | ||
c31140 | train | // New creates a new CTPolicy struct | {
"resource": ""
} | ||
c31141 | train | // GetSCTs attempts to retrieve a SCT from each configured grouping of logs and returns
// the set of SCTs to the caller. | {
"resource": ""
} | ||
c31142 | train | // SubmitFinalCert submits finalized certificates created from precertificates
// to any configured logs | {
"resource": ""
} | ||
c31143 | train | // WriteHeader stores a status code for generating stats. | {
"resource": ""
} | ||
c31144 | train | // PerformValidation has the VA revalidate the specified challenge and returns
// the updated Challenge object. | {
"resource": ""
} | ||
c31145 | train | // requestProto returns "http" for HTTP requests and "https" for HTTPS
// requests. It supports the use of "X-Forwarded-Proto" to override the protocol. | {
"resource": ""
} | ||
c31146 | train | // Nonce is an endpoint for getting a fresh nonce with an HTTP GET or HEAD
// request. This endpoint only returns a status code header - the `HandleFunc`
// wrapper ensures that a nonce is written in the correct response header. | {
"resource": ""
} | ||
c31147 | train | // processRevocation accepts the payload for a revocation request along with
// an account ID and a callback used to decide if the requester is authorized to
// revoke a given certificate. If the request can not be authenticated or the
// requester is not authorized to revoke the certificate requested a problem is
// ... | {
"resource": ""
} | ||
c31148 | train | // revokeCertByKeyID processes an outer JWS as a revocation request that is
// authenticated by a KeyID and the associated account. | {
"resource": ""
} | ||
c31149 | train | // revokeCertByJWK processes an outer JWS as a revocation request that is
// authenticated by an embedded JWK. E.g. in the case where someone is
// requesting a revocation by using the keypair associated with the certificate
// to be revoked | {
"resource": ""
} | ||
c31150 | train | // RevokeCertificate is used by clients to request the revocation of a cert. The
// revocation request is handled uniquely based on the method of authentication
// used. | {
"resource": ""
} | ||
c31151 | train | // prepChallengeForDisplay takes a core.Challenge and prepares it for display to
// the client by filling in its URL field and clearing its ID and URI fields. | {
"resource": ""
} | ||
c31152 | train | // Account is used by a client to submit an update to their account. | {
"resource": ""
} | ||
c31153 | train | // Issuer obtains the issuer certificate used by this instance of Boulder. | {
"resource": ""
} | ||
c31154 | train | // BuildID tells the requestor what build we're running. | {
"resource": ""
} | ||
c31155 | train | // Options responds to an HTTP OPTIONS request. | {
"resource": ""
} | ||
c31156 | train | // NewOrder is used by clients to create a new order object from a CSR | {
"resource": ""
} | ||
c31157 | train | // GetOrder is used to retrieve a existing order object | {
"resource": ""
} | ||
c31158 | train | // resolveEmailAddresses looks up the id of each recipient to find that
// account's email addresses, then adds that recipient to a map from address to
// recipient struct. | {
"resource": ""
} | ||
c31159 | train | // Finds the email addresses associated with a reg ID | {
"resource": ""
} | ||
c31160 | train | // readRecipientsList reads a CSV filename and parses that file into a list of
// recipient structs. It puts any columns after the first into a per-recipient
// map from column name -> value. | {
"resource": ""
} | ||
c31161 | train | // newMockWriter returns a new mockWriter | {
"resource": ""
} | ||
c31162 | train | // Pass returns a password, either directly from the configuration
// struct or by reading from a specified file | {
"resource": ""
} | ||
c31163 | train | // URL returns the DBConnect URL represented by this DBConfig object, either
// loading it from disk or returning a default value. Leading and trailing
// whitespace is stripped. | {
"resource": ""
} | ||
c31164 | train | // CheckChallenges checks whether the list of challenges in the PA config
// actually contains valid challenge names | {
"resource": ""
} | ||
c31165 | train | // UnmarshalJSON parses a string into a ConfigDuration using
// time.ParseDuration. If the input does not unmarshal as a
// string, then UnmarshalJSON returns ErrDurationMustBeString. | {
"resource": ""
} | ||
c31166 | train | // MarshalJSON returns the string form of the duration, as a byte array. | {
"resource": ""
} | ||
c31167 | train | // Setup initializes the TemporalSet by parsing the start and end dates
// and verifying WindowEnd > WindowStart | {
"resource": ""
} | ||
c31168 | train | // pick chooses the correct shard from a TemporalSet to use for the given
// expiration time. In the case where two shards have overlapping windows
// the earlier of the two shards will be chosen. | {
"resource": ""
} | ||
c31169 | train | // Info returns the URI and key of the log, either from a plain log description
// or from the earliest valid shard from a temporal log set | {
"resource": ""
} | ||
c31170 | train | // Resolve just returns the staticResolver it was called from as it satisfies
// both the naming.Resolver and naming.Watcher interfaces | {
"resource": ""
} | ||
c31171 | train | // Next is called in a loop by grpc.RoundRobin expecting updates to which addresses are
// appropriate. Since we just want to return a static list once return a list on the first
// call then block forever on the second instead of sitting in a tight loop | {
"resource": ""
} | ||
c31172 | train | // NewAuthorization is used by clients to submit a new ID Authorization | {
"resource": ""
} | ||
c31173 | train | // ExtractSuffix returns the public suffix of the domain using only the "ICANN"
// section of the Public Suffix List database.
// If the domain does not end in a suffix that belongs to an IANA-assigned
// domain, ExtractSuffix returns an error. | {
"resource": ""
} | ||
c31174 | train | // problemDetailsForError turns an error into a ProblemDetails with the special
// case of returning the same error back if its already a ProblemDetails. If the
// error is of an type unknown to ProblemDetailsForError, it will return a
// ServerInternal ProblemDetails. | {
"resource": ""
} | ||
c31175 | train | // GetThreshold returns the threshold for this rate limit, taking into account
// any overrides for `key` or `regID`. If both `key` and `regID` have an
// override the largest of the two will be used. | {
"resource": ""
} | ||
c31176 | train | // Error returns an error message that includes the json.Unmarshal error as well
// as the bad JSON data. | {
"resource": ""
} | ||
c31177 | train | // badJSONError is a convenience function for constructing a errBadJSON instance
// with the provided args. | {
"resource": ""
} | ||
c31178 | train | // selectRegistration selects all fields of one registration model | {
"resource": ""
} | ||
c31179 | train | // selectPendingAuthz selects all fields of one pending authorization model | {
"resource": ""
} | ||
c31180 | train | // selectAuthz selects all fields of one authorization model | {
"resource": ""
} | ||
c31181 | train | // selectSctReceipt selects all fields of one SignedCertificateTimestamp object | {
"resource": ""
} | ||
c31182 | train | // SelectCertificate selects all fields of one certificate object | {
"resource": ""
} | ||
c31183 | train | // SelectCertificates selects all fields of multiple certificate objects | {
"resource": ""
} | ||
c31184 | train | // SelectCertificateStatus selects all fields of one certificate status model | {
"resource": ""
} | ||
c31185 | train | // SelectCertificateStatuses selects all fields of multiple certificate status objects | {
"resource": ""
} | ||
c31186 | train | // newReg creates a reg model object from a core.Registration | {
"resource": ""
} | ||
c31187 | train | // hasMultipleNonPendingChallenges checks if a slice of challenges contains
// more than one non-pending challenge | {
"resource": ""
} | ||
c31188 | train | // observeLatency is called with the `clientRequestTimeKey` value from
// a request's gRPC metadata. This string value is converted to a timestamp and
// used to calcuate the latency between send and receive time. The latency is
// published to the server interceptor's rpcLag prometheus histogram. An error
// is return... | {
"resource": ""
} | ||
c31189 | train | // ecArgs constructs the private and public key template attributes sent to the
// device and specifies which mechanism should be used. curve determines which
// type of key should be generated. | {
"resource": ""
} | ||
c31190 | train | // ecPub extracts the generated public key, specified by the provided object
// handle, and constructs an ecdsa.PublicKey. It also checks that the key is of
// the correct curve type. | {
"resource": ""
} | ||
c31191 | train | // ecVerify verifies that the extracted public key corresponds with the generated
// private key on the device, specified by the provided object handle, by signing
// a nonce generated on the device and verifying the returned signature using the
// public key. | {
"resource": ""
} | ||
c31192 | train | // ecGenerate is used to generate and verify a ECDSA key pair of the type
// specified by curveStr and with the provided label. It returns the public
// part of the generated key pair as a ecdsa.PublicKey. | {
"resource": ""
} | ||
c31193 | train | // DialContext for a preresolvedDialer shaves 10ms off of the context it was
// given before calling the default transport DialContext using the pre-resolved
// IP and port as the host. If the original host being dialed by DialContext
// does not match the expected hostname in the preresolvedDialer an error will
// be ... | {
"resource": ""
} | ||
c31194 | train | // httpTransport constructs a HTTP Transport with settings appropriate for
// HTTP-01 validation. The provided dialerFunc is used as the Transport's
// DialContext handler. | {
"resource": ""
} | ||
c31195 | train | // newHTTPValidationTarget creates a httpValidationTarget for the given host,
// port, and path. This involves querying DNS for the IP addresses for the host.
// An error is returned if there are no usable IP addresses or if the DNS
// lookups fail. | {
"resource": ""
} | ||
c31196 | train | // extractRequestTarget extracts the hostname and port specified in the provided
// HTTP redirect request. If the request's URL's protocol schema is not HTTP or
// HTTPS an error is returned. If an explicit port is specified in the request's
// URL and it isn't the VA's HTTP or HTTPS port, an error is returned. If the
... | {
"resource": ""
} | ||
c31197 | train | // setupHTTPValidation sets up a preresolvedDialer and a validation record for
// the given request URL and httpValidationTarget. If the req URL is empty, or
// the validation target is nil or has no available IP addresses, an error will
// be returned. | {
"resource": ""
} | ||
c31198 | train | // fetchHTTP invokes processHTTPValidation and if an error result is
// returned, converts it to a problem. Otherwise the results from
// processHTTPValidation are returned. | {
"resource": ""
} | ||
c31199 | train | // StatsAndLogging constructs a metrics.Scope and an AuditLogger based on its config
// parameters, and return them both. It also spawns off an HTTP server on the
// provided port to report the stats and provide pprof profiling handlers.
// Crashes if any setup fails.
// Also sets the constructed AuditLogger as the def... | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.