1d2d7a00aSAdrian Chadd /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3718cf2ccSPedro F. Giffuni * 4d2d7a00aSAdrian Chadd * Copyright (c) 2011 Sam Leffler, Errno Consulting 5d2d7a00aSAdrian Chadd * All rights reserved. 6d2d7a00aSAdrian Chadd * 7d2d7a00aSAdrian Chadd * Redistribution and use in source and binary forms, with or without 8d2d7a00aSAdrian Chadd * modification, are permitted provided that the following conditions 9d2d7a00aSAdrian Chadd * are met: 10d2d7a00aSAdrian Chadd * 1. Redistributions of source code must retain the above copyright 11d2d7a00aSAdrian Chadd * notice, this list of conditions and the following disclaimer, 12d2d7a00aSAdrian Chadd * without modification. 13d2d7a00aSAdrian Chadd * 2. Redistributions in binary form must reproduce at minimum a disclaimer 14d2d7a00aSAdrian Chadd * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 15d2d7a00aSAdrian Chadd * redistribution must be conditioned upon including a substantially 16d2d7a00aSAdrian Chadd * similar Disclaimer requirement for further binary redistribution. 17d2d7a00aSAdrian Chadd * 18d2d7a00aSAdrian Chadd * NO WARRANTY 19d2d7a00aSAdrian Chadd * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20d2d7a00aSAdrian Chadd * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21d2d7a00aSAdrian Chadd * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 22d2d7a00aSAdrian Chadd * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 23d2d7a00aSAdrian Chadd * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 24d2d7a00aSAdrian Chadd * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25d2d7a00aSAdrian Chadd * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26d2d7a00aSAdrian Chadd * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 27d2d7a00aSAdrian Chadd * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28d2d7a00aSAdrian Chadd * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 29d2d7a00aSAdrian Chadd * THE POSSIBILITY OF SUCH DAMAGES. 30d2d7a00aSAdrian Chadd */ 31d2d7a00aSAdrian Chadd 32d2d7a00aSAdrian Chadd #ifndef __IF_ATH_CRYPTO_H__ 33d2d7a00aSAdrian Chadd #define __IF_ATH_CRYPTO_H__ 34d2d7a00aSAdrian Chadd 35d2d7a00aSAdrian Chadd extern int ath_key_alloc(struct ieee80211vap *, struct ieee80211_key *, 36d2d7a00aSAdrian Chadd ieee80211_keyix *, ieee80211_keyix *); 37d2d7a00aSAdrian Chadd extern int ath_key_delete(struct ieee80211vap *, const struct ieee80211_key *); 38bc813c40SAdrian Chadd extern int ath_key_set(struct ieee80211vap *, const struct ieee80211_key *); 3955c7b877SAdrian Chadd extern int ath_keyset(struct ath_softc *sc, struct ieee80211vap *vap, 4055c7b877SAdrian Chadd const struct ieee80211_key *k, struct ieee80211_node *bss); 41d2d7a00aSAdrian Chadd 42d2d7a00aSAdrian Chadd #endif 43