Skip to content

Commit

Permalink
pefs: Fix build by importing crypto/sha2/sha512.c
Browse files Browse the repository at this point in the history
  • Loading branch information
glk committed Feb 14, 2016
1 parent bf43969 commit 0c5d5c9
Show file tree
Hide file tree
Showing 10 changed files with 580 additions and 1,197 deletions.
2 changes: 1 addition & 1 deletion lib/libpam/modules/pam_pefs/Makefile
Expand Up @@ -9,7 +9,7 @@ MAN= pam_pefs.8
SRCS= pam_pefs.c
SRCS+= pefs_key.c pefs_keychain.c pefs_subr.c
SRCS+= rijndael-api.c rijndael-api-fst.c rijndael-alg-fst.c
SRCS+= sha2.c
SRCS+= sha512c.c
SRCS+= hmac_sha512.c
SRCS+= pbkdf2_hmac_sha512.c
SRCS+= crypto_verify_bytes.c
Expand Down
1 change: 1 addition & 0 deletions lib/libpam/modules/pam_pefs/Version.map
@@ -1,6 +1,7 @@
{
local:
SHA*;
_libmd_SHA*;
crypto*;
hmac*;
pbkdf2*;
Expand Down
2 changes: 1 addition & 1 deletion sbin/pefs/Makefile
Expand Up @@ -9,7 +9,7 @@ SYS= ${.CURDIR}/../../sys
PROG= pefs
SRCS= pefs_ctl.c pefs_key.c pefs_keychain.c pefs_subr.c
SRCS+= rijndael-api.c rijndael-api-fst.c rijndael-alg-fst.c
SRCS+= sha2.c
SRCS+= sha512c.c
SRCS+= hmac_sha512.c
SRCS+= pbkdf2_hmac_sha512.c
SRCS+= crypto_verify_bytes.c
Expand Down
2 changes: 1 addition & 1 deletion sys/crypto/hmac/hmac_sha512.h
Expand Up @@ -29,7 +29,7 @@
#ifndef _SYS_CRYPTO_HMAC_SHA512_
#define _SYS_CRYPTO_HMAC_SHA512_

#include <crypto/sha2/sha2.h>
#include <crypto/sha2/sha512.h>

struct hmac_sha512_ctx {
SHA512_CTX shactx;
Expand Down

0 comments on commit 0c5d5c9

Please sign in to comment.