Skip to content

Commit

Permalink
improve comment about buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos committed Oct 14, 2024
1 parent 6746249 commit 2cc5b43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libp2p/transports/tls/certificate.nim
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ proc generateSignedKey(
const extValueSize = 256 # Buffer size for ASN.1 encoding
var
extValue: array[extValueSize, byte]
extPtr: ptr byte = addr extValue[extValueSize - 1] # Start at the end of the buffer
extPtr: ptr byte = addr extValue[extValueSize - 1]
# Start at the end of the buffer as mbedtls_asn1_write_octet_string works backwards in data buffer.
startPtr: ptr byte = addr extValue[0]
len = 0

Expand Down

0 comments on commit 2cc5b43

Please sign in to comment.