Skip to content

Commit 73842cd

Browse files
authored
Merge pull request #148 from codecrafters-io/andy/tweak
Add notes for using OpenSSL/SHA1 in C and C++
2 parents 2865ab5 + 15e7f50 commit 73842cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

course-definition.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,12 @@ stages:
426426
the "uncompressed" contents of the file, not the compressed version.
427427
- The input for the SHA-1 hash is the header (`blob <size>\0`) + the actual contents of the file,
428428
not just the contents of the file.
429+
{{#lang_is_c}}
430+
- You can use `#include <openssl/sha.h>` to access OpenSSL’s [SHA1()](https://www.openssl.org/docs/man3.0/man3/SHA1.html) hashing function.
431+
{{/lang_is_c}}
432+
{{#lang_is_cpp}}
433+
- You can use `#include <openssl/sha.h>` to access OpenSSL’s [SHA1()](https://www.openssl.org/docs/man3.0/man3/SHA1.html) hashing function.
434+
{{/lang_is_cpp}}
429435
marketing_md: |-
430436
In the previous stage, we learnt how to read a blob. In this stage, we'll
431437
persist a blob by implementing the `git hash-object` command.

0 commit comments

Comments
 (0)