add wpa_passphrase utility to the build
PR: bin/104457 Submitted by: Henrik Brix Andersen MFC after: 1 week
This commit is contained in:
parent
7693afca4e
commit
52f01b3b0e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164363
@ -1,5 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= wpa_supplicant wpa_cli hostapd hostapd_cli ndis_events
|
||||
SUBDIR= wpa_supplicant wpa_cli wpa_passphrase
|
||||
SUBDIR+= hostapd hostapd_cli
|
||||
SUBDIR+= ndis_events
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
11
usr.sbin/wpa/wpa_passphrase/Makefile
Normal file
11
usr.sbin/wpa/wpa_passphrase/Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
# $FreeBSD$
|
||||
|
||||
WPA_SUPPLICANT_DISTDIR?= ${.CURDIR}/../../../contrib/wpa_supplicant
|
||||
.PATH: ${WPA_SUPPLICANT_DISTDIR}
|
||||
|
||||
PROG= wpa_passphrase
|
||||
SRCS= wpa_passphrase.c sha1.c md5.c
|
||||
|
||||
MAN= wpa_passphrase.8
|
||||
|
||||
.include <bsd.prog.mk>
|
66
usr.sbin/wpa/wpa_passphrase/wpa_passphrase.8
Normal file
66
usr.sbin/wpa/wpa_passphrase/wpa_passphrase.8
Normal file
@ -0,0 +1,66 @@
|
||||
.\" Copyright (c) 2006 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd October 16, 2006
|
||||
.Dt WPA_PASSPHRASE 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm wpa_passphrase
|
||||
.Nd "utility for generating a 256-bit pre-shared WPA key from an ASCII passphrase"
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Aq Ar ssid
|
||||
.Op Ar passphrase
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
utility is a small program for generating a 256-bit pre-shared WPA key
|
||||
from an ASCII passphrase and a given SSID. The output is formatted for
|
||||
inclusion in
|
||||
.Xr wpa_supplicant.conf 5 .
|
||||
.Pp
|
||||
If
|
||||
.Nm
|
||||
is called with only an SSID as argument it will prompt for a
|
||||
passphrase on standard input.
|
||||
.Sh SEE ALSO
|
||||
.Xr wpa_supplicant.conf 5 ,
|
||||
.Xr wpa_supplicant 8
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Nm
|
||||
utility first appeared in
|
||||
.Fx 6.2 .
|
||||
.Sh AUTHORS
|
||||
The
|
||||
.Nm
|
||||
utility was written by
|
||||
.An Jouni Malinen
|
||||
.Aq jkmaline@cc.hut.fi .
|
||||
.Pp
|
||||
This manual page was written by
|
||||
.An Henrik Brix Andersen
|
||||
.Aq henrik@brixandersen.dk .
|
@ -218,7 +218,12 @@ an 8-63 character
|
||||
.Tn ASCII
|
||||
passphrase.
|
||||
.Tn ASCII
|
||||
passphrases are converted to a 256-bit key using the network SSID.
|
||||
passphrases are dynamically converted to a 256-bit key at runtime
|
||||
using the network SSID, or they can be statically converted at
|
||||
configuration time using
|
||||
the
|
||||
.Xr wpa_passphrase 8
|
||||
utility.
|
||||
.It Va eapol_flags
|
||||
Dynamic WEP key usage for non-WPA mode, specified as a bit field.
|
||||
Bit 0 (1) forces dynamically generated unicast WEP keys to be used.
|
||||
@ -511,6 +516,7 @@ network={
|
||||
.Ed
|
||||
.Sh SEE ALSO
|
||||
.Xr wpa_cli 8 ,
|
||||
.Xr wpa_passphrase 8 ,
|
||||
.Xr wpa_supplicant 8
|
||||
.Sh HISTORY
|
||||
The
|
||||
|
Loading…
Reference in New Issue
Block a user