Deleted Added
full compact
iscontrol.h (203460) iscontrol.h (211095)
1/*-
1/*-
2 * Copyright (c) 2005-2008 Daniel Braniss <danny@cs.huji.ac.il>
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
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright

--- 7 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
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
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright

--- 7 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sbin/iscontrol/iscontrol.h 203460 2010-02-03 23:58:00Z delphij $
26 * $FreeBSD: head/sbin/iscontrol/iscontrol.h 211095 2010-08-09 12:36:36Z des $
27 */
28/*
29 | $Id: iscontrol.h,v 2.3 2007/04/27 08:36:49 danny Exp danny $
30 */
31#ifdef DEBUG
32int vflag;
33
34# define debug(level, fmt, args...) do {if (level <= vflag) printf("%s: " fmt "\n", __func__ , ##args);} while(0)

--- 114 unchanged lines hidden (view full) ---

149
150int vflag;
151char *iscsidev;
152
153void parseArgs(int nargs, char **args, isc_opt_t *op);
154void parseConfig(FILE *fd, char *key, isc_opt_t *op);
155
156char *chapDigest(char *ap, char id, char *cp, char *chapSecret);
27 */
28/*
29 | $Id: iscontrol.h,v 2.3 2007/04/27 08:36:49 danny Exp danny $
30 */
31#ifdef DEBUG
32int vflag;
33
34# define debug(level, fmt, args...) do {if (level <= vflag) printf("%s: " fmt "\n", __func__ , ##args);} while(0)

--- 114 unchanged lines hidden (view full) ---

149
150int vflag;
151char *iscsidev;
152
153void parseArgs(int nargs, char **args, isc_opt_t *op);
154void parseConfig(FILE *fd, char *key, isc_opt_t *op);
155
156char *chapDigest(char *ap, char id, char *cp, char *chapSecret);
157char *genChapChallenge(char *encoding, int len);
157char *genChapChallenge(char *encoding, uint len);
158
159int str2bin(char *str, char **rsp);
160char *bin2str(char *fmt, unsigned char *md, int blen);
161
162int negotiateOPV(isess_t *sess);
163int setOptions(isess_t *sess, int flag);
164
165int loginPhase(isess_t *sess);
158
159int str2bin(char *str, char **rsp);
160char *bin2str(char *fmt, unsigned char *md, int blen);
161
162int negotiateOPV(isess_t *sess);
163int setOptions(isess_t *sess, int flag);
164
165int loginPhase(isess_t *sess);