_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c30400
train
// Revoke revokes the certificate for host via ACME protocol. // It assumes the certificate was obtained from the // CA at DefaultCAUrl.
{ "resource": "" }
c30401
train
// Present adds the challenge certificate to the cache.
{ "resource": "" }
c30402
train
// CleanUp removes the challenge certificate from the cache.
{ "resource": "" }
c30403
train
// RegisterStorageProvider registers provider by name for storing tls data
{ "resource": "" }
c30404
train
// HTTPChallengeHandler proxies challenge requests to ACME client if the // request path starts with challengeBasePath. It returns true if it // handled the request and no more needs to be done; it returns false // if this call was a no-op and the request still needs handling.
{ "resource": "" }
c30405
train
// Sends a filter_profile message to the pffilter service
{ "resource": "" }
c30406
train
// A generalize function for sending access filter messages
{ "resource": "" }
c30407
train
// Sends a filter_vlan message to the pffilter service
{ "resource": "" }
c30408
train
// Sends a filter_dhcp message to the pffilter service
{ "resource": "" }
c30409
train
// Sends a filter_dns message to the pffilter service
{ "resource": "" }
c30410
train
// Sends a filter_radius message to the pffilter service
{ "resource": "" }
c30411
train
// Send a request to the pffilter service
{ "resource": "" }
c30412
train
// Send an SSO start to the Checkpoint firewall // Returns an error unless there is a valid reply from the firewall
{ "resource": "" }
c30413
train
// Build the RADIUS packet for an SSO start
{ "resource": "" }
c30414
train
// SSO stop handler which does nothing other than printing a warning since the SSO stop is unimplemented for this firewall
{ "resource": "" }
c30415
train
// setVersion figures out the version information // based on variables set by -ldflags.
{ "resource": "" }
c30416
train
// OnStartupMetrics sets up the metrics on startup. This is done for all proxy protocols.
{ "resource": "" }
c30417
train
// stapleOCSP staples OCSP information to cert for hostname name. // If you have it handy, you should pass in the PEM-encoded certificate // bundle; otherwise the DER-encoded cert will have to be PEM-encoded. // If you don't have the PEM blocks already, just pass in nil. // // Errors here are not necessarily fatal, it ...
{ "resource": "" }
c30418
train
// makeSelfSignedCert makes a self-signed certificate according // to the parameters in config. It then caches the certificate // in our cache.
{ "resource": "" }
c30419
train
// fastHash hashes input using a hashing algorithm that // is fast, and returns the hash as a hex-encoded string. // Do not use this for cryptographic purposes.
{ "resource": "" }
c30420
train
// ErrorMessage returns an error message suitable for sending // back to the client.
{ "resource": "" }
c30421
train
// Create a new FirewallSSO factory containing all the valid types
{ "resource": "" }
c30422
train
// Instantiate a new FirewallSSO given its configuration ID in PacketFence
{ "resource": "" }
c30423
train
// Renew renews the managed certificate for name. This function is // safe for concurrent use. // // Callers who have access to a Config value should use the RenewCert // method on that instead of this lower-level method.
{ "resource": "" }
c30424
train
// Revoke revokes the certificate for name and deltes // it from storage.
{ "resource": "" }
c30425
train
// Add adds names to c. It is safe for concurrent use.
{ "resource": "" }
c30426
train
// Remove removes names from c. It is safe for concurrent use.
{ "resource": "" }
c30427
train
// Has returns true if c has name. It is safe for concurrent use.
{ "resource": "" }
c30428
train
// OnShutdown tears down the metrics on shutdown and restart.
{ "resource": "" }
c30429
train
// Inc function use to increment an ip
{ "resource": "" }
c30430
train
// Dec function use to decrement an ip
{ "resource": "" }
c30431
train
// ConvertToSting convert byte to string
{ "resource": "" }
c30432
train
// ConvertToByte convert string to byte
{ "resource": "" }
c30433
train
// ByteToString return a human readeable string of the byte
{ "resource": "" }
c30434
train
// RenewCert renews the certificate for name using c. It stows the // renewed certificate and its assets in storage if successful.
{ "resource": "" }
c30435
train
// StorageFor obtains a TLS Storage instance for the given CA URL which should // be unique for every different ACME CA. If a StorageCreator is set on this // Config, it will be used. Otherwise the default file storage implementation // is used. When the error is nil, this is guaranteed to return a non-nil // Storage i...
{ "resource": "" }
c30436
train
// Remove removes the zone named name from z. It also stop the the zone's reload goroutine.
{ "resource": "" }
c30437
train
// Builds all networks, meant to be called after the data is loaded into the struct attributes
{ "resource": "" }
c30438
train
// Builds Ip and IpNet based on the Cidr in the struct
{ "resource": "" }
c30439
train
// Get the cache_timeout configured in the firewall as an int // Will return 0 if its not there or not a valid int
{ "resource": "" }
c30440
train
// Start method that will be called on every SSO called via ExecuteStart
{ "resource": "" }
c30441
train
// Stop method that will be called on every SSO called via ExecuteStop
{ "resource": "" }
c30442
train
// Get the source IP address for the SSO packets // Will return either the management VIP if there is one of the IP of the management network
{ "resource": "" }
c30443
train
// Get the default SSO HTTP client that doesn't check for valid certificates
{ "resource": "" }
c30444
train
// Get the default RADIUS client
{ "resource": "" }
c30445
train
// Get the logger for a firewall
{ "resource": "" }
c30446
train
// Execute an SSO Start request on the specified firewall // Makes sure to call FirewallSSO.Start and to validate the network and role if necessary
{ "resource": "" }
c30447
train
// Execute an SSO Stop request on the specified firewall // Makes sure to call FirewallSSO.Start and to validate the network if necessary
{ "resource": "" }
c30448
train
// New returns a new cache.
{ "resource": "" }
c30449
train
// Get looks up element index under key.
{ "resource": "" }
c30450
train
// Add adds element indexed by key into the cache. Any existing element is overwritten
{ "resource": "" }
c30451
train
// Remove removes the element indexed by key from the cache.
{ "resource": "" }
c30452
train
// Get looks up the element indexed under key.
{ "resource": "" }
c30453
train
// ServePacket serves QUIC requests on pc until it is closed.
{ "resource": "" }
c30454
train
// Send an SSO start to the JuniperSRX using HTTP // This will return any value from startSyslog or startHttp depending on the type of the transport
{ "resource": "" }
c30455
train
// Send a start to the JuniperSRX using the HTTP transport // Will return an error if it fails to get a valid reply from it
{ "resource": "" }
c30456
train
// Send an SSO stop to the firewall by using HTTP transport.
{ "resource": "" }
c30457
train
// Get an SSH session to the firewall
{ "resource": "" }
c30458
train
// Send an SSO start to the BarracudaNG Firewall // Will return an error if it can't connect
{ "resource": "" }
c30459
train
// Detect the vip on management
{ "resource": "" }
c30460
train
// NewStaticUpstreams parses the configuration input and sets up // static upstreams for the proxy plugin.
{ "resource": "" }
c30461
train
// Fuzz fuzzes proxy.
{ "resource": "" }
c30462
train
// Ensures that the full body is read and closes the reader so that the connection can be reused
{ "resource": "" }
c30463
train
// toMsg converts a googleMsg into the dns message.
{ "resource": "" }
c30464
train
// toRR transforms a "google" RR to a dns.RR.
{ "resource": "" }
c30465
train
// WriteMsg writes back the response to the client and THEN works on logging the request // and response to dnstap. // Dnstap errors are to be checked by DnstapError.
{ "resource": "" }
c30466
train
// Send an SSO start to the Iboss firewall // Returns an error unless there is a valid reply from the firewall or if the HTTP request fails to be built
{ "resource": "" }
c30467
train
// Build an HTTP request to send to the Iboss firewall // This builds the request for start+stop and is controlled by the action parameter // This will return an error if the request cannot be built
{ "resource": "" }
c30468
train
// RenewManagedCertificates renews managed certificates.
{ "resource": "" }
c30469
train
// freshOCSP returns true if resp is still fresh, // meaning that it is not expedient to get an // updated response from the OCSP server.
{ "resource": "" }
c30470
train
// initIPSet fetch the database to remove already assigned ip addresses
{ "resource": "" }
c30471
train
// detectType of each network
{ "resource": "" }
c30472
train
// cacheUnmanagedCertificatePEMFile loads a certificate for host using certFile // and keyFile, which must be in PEM format. It stores the certificate in // memory. The Managed and OnDemand flags of the certificate will be set to // false. // // This function is safe for concurrent use.
{ "resource": "" }
c30473
train
// cacheUnmanagedCertificatePEMBytes makes a certificate out of the PEM bytes // of the certificate and key, then caches it in memory. // // This function is safe for concurrent use.
{ "resource": "" }
c30474
train
// makeCertificate turns a certificate PEM bundle and a key PEM block into // a Certificate, with OCSP and other relevant metadata tagged with it, // except for the OnDemand and Managed flags. It is up to the caller to // set those properties.
{ "resource": "" }
c30475
train
// fillCertFromLeaf populates cert.Names and cert.NotAfter // using data in leaf.
{ "resource": "" }
c30476
train
// cacheCertificate adds cert to the in-memory cache. If the cache is // empty, cert will be used as the default certificate. If the cache is // full, random entries are deleted until there is room to map all the // names on the certificate. // // This certificate will be keyed to the names in cert.Names. Any name // t...
{ "resource": "" }
c30477
train
// uncacheCertificate deletes name's certificate from the // cache. If name is not a key in the certificate cache, // this function does nothing.
{ "resource": "" }
c30478
train
// Setup an async goroutine that refreshes the pfconfig pool every second
{ "resource": "" }
c30479
train
// Middleware that ensures there is a read-lock on the pool during every request and released when the request is done
{ "resource": "" }
c30480
train
// Down checks whether the upstream host is down or not. // Down will try to use uh.CheckDown first, and will fall // back to some default criteria if necessary.
{ "resource": "" }
c30481
train
// Start starts the healthcheck
{ "resource": "" }
c30482
train
// This was moved into a thread so that each host could throw a health // check at the same time. The reason for this is that if we are checking // 3 hosts, and the first one is gone, and we spend minutes timing out to // fail it, we would not have been doing any other health checks in that // time. So we now have a ...
{ "resource": "" }
c30483
train
// Select selects an upstream host based on the policy // and the healthcheck result.
{ "resource": "" }
c30484
train
// normalizeCheckURL creates a proper URL for the health check.
{ "resource": "" }
c30485
train
// Build the JobStatusHandler which will initialize the cache and instantiate the router along with its routes
{ "resource": "" }
c30486
train
// Defered panic handler that will write an error into the HTTP body and call outputPanic
{ "resource": "" }
c30487
train
// Defered panic handler that calls outputPanic
{ "resource": "" }
c30488
train
// Output a panic error message along with its stacktrace // The stacktrace will start from this function up to where the panic was initially called // The stack and message are outputted in STDERR and a log line is added in Error
{ "resource": "" }
c30489
train
// hasStubEdns0 checks if the message is carrying our special edns0 zero option.
{ "resource": "" }
c30490
train
// addStubEdns0 adds our special option to the message's OPT record.
{ "resource": "" }
c30491
train
// Wrap a dnstap message in the top-level dnstap type.
{ "resource": "" }
c30492
train
// Marshal encodes the message to a binary dnstap payload.
{ "resource": "" }
c30493
train
// Dedup de-duplicates a message.
{ "resource": "" }
c30494
train
// Any flags defined here, need to be namespaced to the serverType other // wise they potentially clash with other server types.
{ "resource": "" }
c30495
train
// Firewall specific init
{ "resource": "" }
c30496
train
// Send an SSO start to the PaloAlto using either syslog or HTTP depending on the Transport value of the struct // This will return any value from startSyslog or startHttp depending on the type of the transport
{ "resource": "" }
c30497
train
// Get a syslog writter connection to the PaloAlto // This will always connect to port 514 and ignore the Port parameter // Returns an error if it can't connect but given its UDP, this should never fail
{ "resource": "" }
c30498
train
// Send a syslog line to the PaloAlto // Will return an error if it fails to send the message
{ "resource": "" }
c30499
train
// Send a start to the PaloAlto using the syslog transport // Will return an error if it fails to send the message
{ "resource": "" }