Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
60310ce0
Commit
60310ce0
authored
Apr 11, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
Apr 11, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #42860 from jcbsmpsn/change-pem-type-to-constant
Automatic merge from submit-queue Change the PEM block type to use the constant
parents
c826c5a1
515987db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
csr.go
staging/src/k8s.io/client-go/util/cert/csr.go
+1
-1
csr_test.go
staging/src/k8s.io/client-go/util/cert/csr_test.go
+1
-1
No files found.
staging/src/k8s.io/client-go/util/cert/csr.go
View file @
60310ce0
...
@@ -51,7 +51,7 @@ func MakeCSRFromTemplate(privateKey interface{}, template *x509.CertificateReque
...
@@ -51,7 +51,7 @@ func MakeCSRFromTemplate(privateKey interface{}, template *x509.CertificateReque
}
}
csrPemBlock
:=
&
pem
.
Block
{
csrPemBlock
:=
&
pem
.
Block
{
Type
:
"CERTIFICATE REQUEST"
,
Type
:
CertificateRequestBlockType
,
Bytes
:
csrDER
,
Bytes
:
csrDER
,
}
}
...
...
staging/src/k8s.io/client-go/util/cert/csr_test.go
View file @
60310ce0
...
@@ -52,7 +52,7 @@ func TestMakeCSR(t *testing.T) {
...
@@ -52,7 +52,7 @@ func TestMakeCSR(t *testing.T) {
if
len
(
rest
)
!=
0
{
if
len
(
rest
)
!=
0
{
t
.
Error
(
"Found more than one PEM encoded block in the result."
)
t
.
Error
(
"Found more than one PEM encoded block in the result."
)
}
}
if
csrBlock
.
Type
!=
"CERTIFICATE REQUEST"
{
if
csrBlock
.
Type
!=
CertificateRequestBlockType
{
t
.
Errorf
(
"Found block type %q, wanted 'CERTIFICATE REQUEST'"
,
csrBlock
.
Type
)
t
.
Errorf
(
"Found block type %q, wanted 'CERTIFICATE REQUEST'"
,
csrBlock
.
Type
)
}
}
csr
,
err
:=
x509
.
ParseCertificateRequest
(
csrBlock
.
Bytes
)
csr
,
err
:=
x509
.
ParseCertificateRequest
(
csrBlock
.
Bytes
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment