Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KIT-CA
websearch
Commits
e5464598
Commit
e5464598
authored
Mar 21, 2017
by
Heiko Reese
Browse files
Re-enabled redirect based on known serial-ranges
parent
2ba0d012
Changes
1
Hide whitespace changes
Inline
Side-by-side
redirect.go
View file @
e5464598
...
...
@@ -26,13 +26,12 @@ func init() {
}
func
GetIssuer
(
serial
string
,
ccache
*
CertCache
)
(
string
,
error
)
{
// convert to integer
// convert
serial
to integer
var
sernum
big
.
Int
_
,
ok
:=
sernum
.
SetString
(
serial
,
10
)
if
!
ok
{
return
""
,
errorCannotConvert
}
/* auskommentiert, weil: das erlaubt dann nicht-legale seriennummern an den gesicherten enden
// alte CA (kurze nummern, serial kleiner als erstes g2)
if
len
(
serial
)
==
8
||
len
(
serial
)
==
14
||
sernum
.
Cmp
(
&
serialG2First
)
<
1
{
return
kitcag1
,
nil
...
...
@@ -41,7 +40,6 @@ func GetIssuer(serial string, ccache *CertCache) (string, error) {
if
sernum
.
Cmp
(
&
serialG1Final
)
==
1
{
return
kitcag2
,
nil
}
*/
// check certificate cache
fromcache
:=
ccache
.
Get
(
serial
)
if
fromcache
==
nil
{
...
...
Write
Preview
Supports
Markdown
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