mac.h revision 76259
117209Swollman/* $OpenBSD: mac.h,v 1.1 2001/02/11 12:59:24 markus Exp $ */ 217209Swollman/* 317209Swollman * Copyright (c) 2001 Markus Friedl. All rights reserved. 455837Sjasone * 555837Sjasone * Redistribution and use in source and binary forms, with or without 617209Swollman * modification, are permitted provided that the following conditions 715923Sscrappy * are met: 82708Swollman * 1. Redistributions of source code must retain the above copyright 92708Swollman * notice, this list of conditions and the following disclaimer. 1017209Swollman * 2. Redistributions in binary form must reproduce the above copyright 112708Swollman * notice, this list of conditions and the following disclaimer in the 122708Swollman * documentation and/or other materials provided with the distribution. 132708Swollman * 142708Swollman * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 152708Swollman * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 162708Swollman * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 172708Swollman * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 182708Swollman * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 192708Swollman * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 202708Swollman * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 212708Swollman * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2271579Sdeischen * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2318834Swollman * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2418834Swollman */ 2571579Sdeischen 2671579Sdeischenint mac_valid(const char *names); 2771579Sdeischenint mac_init(Mac *mac, char *name); 2871579Sdeischenu_char *mac_compute(Mac *mac, u_int32_t seqno, u_char *data, int datalen); 2918834Swollman