Skip to content

Commit

Permalink
added temporary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRoettges committed Dec 1, 2023
1 parent 8f67b1b commit 1836352
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/pemreader/pemreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ package pemreader

import (
"bufio"
"encoding/hex"
"errors"
"fmt"
"os"
"regexp"
"strconv"
)

const pemMaxLineLength = 64 + 2
Expand Down Expand Up @@ -35,7 +37,9 @@ func (p *PemReader) readNextBase64Line(byteData []byte) (int, error) {
if len(readString) > pemMaxLineLength {
return 0, fmt.Errorf("line was longer than 64 characters %s", readString)
} else {
fmt.Println("Base64 String read: " + readString)
i := copy(byteData, readString)
fmt.Println("Base64 String as bytes(length:" + strconv.Itoa(i) + "): " + hex.EncodeToString(byteData))
return i, nil
}
}
Expand Down
1 change: 0 additions & 1 deletion crl/crlreader/crlreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ type StreamingCRLFileReader struct {
}

func (StreamingCRLFileReader) ReadCRL(crlProcessor CRLProcessor, crlFilePath string) (*CRLReadResult, error) {

crlFile, err := os.Open(crlFilePath)
if err != nil {
return nil, err
Expand Down

0 comments on commit 1836352

Please sign in to comment.