forked from certnanny/sscep
-
Notifications
You must be signed in to change notification settings - Fork 1
Customizing SSCEP
Endi S. Dewata edited this page Nov 3, 2021
·
4 revisions
SSCEP can be modified to use SHA2 hashes by editing sscep.c:
diff ../sscep-org/sscep.c sscep.c 368a369,372 > } else if (!strncmp(S_char, "sha256", 6)) { > sig_alg = (EVP_MD *)EVP_sha256(); > } else if (!strncmp(S_char, "sha512", 6)) { > sig_alg = (EVP_MD *)EVP_sha512(); 380a385,388 > } else if (!strncmp(F_char, "sha256", 6)) { > fp_alg = (EVP_MD *)EVP_sha256(); > } else if (!strncmp(F_char, "sha512", 6)) { > fp_alg = (EVP_MD *)EVP_sha512();