36c36
< __FBSDID("$FreeBSD: head/usr.sbin/mtree/create.c 124389 2004-01-11 19:38:48Z phk $");
---
> __FBSDID("$FreeBSD: head/usr.sbin/mtree/create.c 144295 2005-03-29 11:44:17Z tobez $");
54a55,57
> #ifdef SHA256
> #include <sha256.h>
> #endif
251a255,264
> #ifdef SHA256
> if (keys & F_SHA256 && S_ISREG(p->fts_statp->st_mode)) {
> char *digest, buf[65];
>
> digest = SHA256_File(p->fts_accpath, buf);
> if (!digest)
> err(1, "%s", p->fts_accpath);
> output(indent, &offset, "sha256digest=%s", digest);
> }
> #endif /* SHA256 */
< __FBSDID("$FreeBSD: head/usr.sbin/mtree/create.c 124389 2004-01-11 19:38:48Z phk $");
---
> __FBSDID("$FreeBSD: head/usr.sbin/mtree/create.c 144295 2005-03-29 11:44:17Z tobez $");
54a55,57
> #ifdef SHA256
> #include <sha256.h>
> #endif
251a255,264
> #ifdef SHA256
> if (keys & F_SHA256 && S_ISREG(p->fts_statp->st_mode)) {
> char *digest, buf[65];
>
> digest = SHA256_File(p->fts_accpath, buf);
> if (!digest)
> err(1, "%s", p->fts_accpath);
> output(indent, &offset, "sha256digest=%s", digest);
> }
> #endif /* SHA256 */