Annotation of embedaddon/mpd/src/encrypt.h, revision 1.1
1.1 ! misho 1:
! 2: /*
! 3: * encrypt.h
! 4: *
! 5: * Written by Archie Cobbs <archie@freebsd.org>
! 6: * Copyright (c) 1998-1999 Whistle Communications, Inc. All rights reserved.
! 7: * See ``COPYRIGHT.whistle''
! 8: */
! 9:
! 10: #ifndef _ENCRYPT_H_
! 11: #define _ENCRYPT_H_
! 12:
! 13: /*
! 14: * DEFINITIONS
! 15: */
! 16:
! 17: /* Descriptor for one type of encryption */
! 18:
! 19: struct ecpstate;
! 20:
! 21: struct enctype
! 22: {
! 23: const char *name;
! 24: u_char type;
! 25: int (*Init)(Bund b, int dir);
! 26: void (*Configure)(Bund b);
! 27: void (*UnConfigure)(Bund b);
! 28: int (*SubtractBloat)(Bund b, int size);
! 29: void (*Cleanup)(Bund b, int dir);
! 30: u_char *(*BuildConfigReq)(Bund b, u_char *cp);
! 31: void (*DecodeConfig)(Fsm fp, FsmOption opt, int mode);
! 32: Mbuf (*SendResetReq)(Bund b);
! 33: Mbuf (*RecvResetReq)(Bund b, int id, Mbuf bp);
! 34: void (*RecvResetAck)(Bund b, int id, Mbuf bp);
! 35: int (*Stat)(Context ctx, int dir);
! 36: Mbuf (*Encrypt)(Bund b, Mbuf plain);
! 37: Mbuf (*Decrypt)(Bund b, Mbuf cypher);
! 38: };
! 39: typedef const struct enctype *EncType;
! 40:
! 41: #endif
! 42:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>