summaryrefslogtreecommitdiff
path: root/tools/build/feature/test-libcrypto.c
blob: bd79dc7f28d3680f5a3ed1247e55d1bea9bc8ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <openssl/sha.h>
#include <openssl/md5.h>

int main(void)
{
	MD5_CTX context;
	unsigned char md[MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH];
	unsigned char dat[] = "12345";

	MD5_Init(&context);
	MD5_Update(&context, &dat[0], sizeof(dat));
	MD5_Final(&md[0], &context);

	SHA1(&dat[0], sizeof(dat), &md[0]);

	return 0;
}
sb/host/ohci-omap.c?id=e0edc8c546463f268d41d064d855bcff994c52fa'>patch) tree5b943c3824ae351d342ed16d5337bc02674e5fcc /drivers/usb/host/ohci-omap.c parent88ba6cae15e38f609aba4f3881e1c404c432596c (diff)
libata: apply MAX_SEC_1024 to all CX1-JB*-HP devices
Marko reports that CX1-JB512-HP shows the same timeout issues as CX1-JB256-HP. Let's apply MAX_SEC_128 to all devices in the series. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Marko Koski-Vähälä <marko@koski-vahala.com> Cc: stable@vger.kernel.org # v3.19+
Diffstat (limited to 'drivers/usb/host/ohci-omap.c')