1219185Sadrian/*-
2219185Sadrian * Copyright (c) 2011 Sam Leffler, Errno Consulting
3219185Sadrian * All rights reserved.
4219185Sadrian *
5219185Sadrian * Redistribution and use in source and binary forms, with or without
6219185Sadrian * modification, are permitted provided that the following conditions
7219185Sadrian * are met:
8219185Sadrian * 1. Redistributions of source code must retain the above copyright
9219185Sadrian *    notice, this list of conditions and the following disclaimer,
10219185Sadrian *    without modification.
11219185Sadrian * 2. Redistributions in binary form must reproduce at minimum a disclaimer
12219185Sadrian *    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
13219185Sadrian *    redistribution must be conditioned upon including a substantially
14219185Sadrian *    similar Disclaimer requirement for further binary redistribution.
15219185Sadrian *
16219185Sadrian * NO WARRANTY
17219185Sadrian * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18219185Sadrian * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19219185Sadrian * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
20219185Sadrian * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
21219185Sadrian * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22219185Sadrian * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23219185Sadrian * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24219185Sadrian * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25219185Sadrian * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26219185Sadrian * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27219185Sadrian * THE POSSIBILITY OF SUCH DAMAGES.
28219185Sadrian *
29219185Sadrian * $FreeBSD$
30219185Sadrian */
31219185Sadrian
32219185Sadrian#ifndef	__IF_ATH_CRYPTO_H__
33219185Sadrian#define	__IF_ATH_CRYPTO_H__
34219185Sadrian
35219185Sadrianextern int ath_key_alloc(struct ieee80211vap *, struct ieee80211_key *,
36219185Sadrian    ieee80211_keyix *, ieee80211_keyix *);
37219185Sadrianextern int ath_key_delete(struct ieee80211vap *, const struct ieee80211_key *);
38288635Sadrianextern int ath_key_set(struct ieee80211vap *, const struct ieee80211_key *);
39227357Sadrianextern int ath_keyset(struct ath_softc *sc, struct ieee80211vap *vap,
40227357Sadrian    const struct ieee80211_key *k, struct ieee80211_node *bss);
41219185Sadrian
42219185Sadrian#endif
43