auth_subr.c (250303) | auth_subr.c (254657) |
---|---|
1/*- 2 * Copyright (c) 2005-2010 Daniel Braniss <danny@cs.huji.ac.il> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * 26 */ 27 28/* 29 | $Id: auth_subr.c,v 2.2 2007/06/01 08:09:37 danny Exp $ 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005-2010 Daniel Braniss <danny@cs.huji.ac.il> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * 26 */ 27 28/* 29 | $Id: auth_subr.c,v 2.2 2007/06/01 08:09:37 danny Exp $ 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sbin/iscontrol/auth_subr.c 250303 2013-05-06 17:44:12Z eadler $"); | 33__FBSDID("$FreeBSD: head/sbin/iscontrol/auth_subr.c 254657 2013-08-22 14:02:34Z trasz $"); |
34 35#include <sys/param.h> 36#include <sys/types.h> 37#include <sys/socket.h> 38#include <sys/sysctl.h> 39 40#include <netinet/in.h> 41#include <netinet/tcp.h> 42#include <arpa/inet.h> 43#include <unistd.h> 44#include <stdlib.h> 45#include <stdio.h> 46#include <string.h> 47#include <fcntl.h> 48 49#include <md5.h> 50#include <sha.h> 51 | 34 35#include <sys/param.h> 36#include <sys/types.h> 37#include <sys/socket.h> 38#include <sys/sysctl.h> 39 40#include <netinet/in.h> 41#include <netinet/tcp.h> 42#include <arpa/inet.h> 43#include <unistd.h> 44#include <stdlib.h> 45#include <stdio.h> 46#include <string.h> 47#include <fcntl.h> 48 49#include <md5.h> 50#include <sha.h> 51 |
52#include <dev/iscsi/initiator/iscsi.h> | 52#include <dev/iscsi_initiator/iscsi.h> |
53#include "iscontrol.h" 54 55static int 56chapMD5(char id, char *cp, char *chapSecret, unsigned char *digest) 57{ 58 MD5_CTX ctx; 59 char *tmp; 60 int len; --- 144 unchanged lines hidden --- | 53#include "iscontrol.h" 54 55static int 56chapMD5(char id, char *cp, char *chapSecret, unsigned char *digest) 57{ 58 MD5_CTX ctx; 59 char *tmp; 60 int len; --- 144 unchanged lines hidden --- |