mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-28 08:14:39 +02:00
Fixed #7
This commit is contained in:
parent
c06bd61cc3
commit
0cf0e7ce82
@ -1,4 +1,4 @@
|
|||||||
CCFLAGS = -std=c99 -O3
|
CCFLAGS = -std=c99 -O3 -Wno-error=deprecated-declarations
|
||||||
LDFLAGS = -lcrypto -I../include
|
LDFLAGS = -lcrypto -I../include
|
||||||
|
|
||||||
TARGET = pixiewps
|
TARGET = pixiewps
|
||||||
@ -6,7 +6,7 @@ PREFIX = $(DESTDIR)/usr
|
|||||||
BINDIR = $(PREFIX)/bin
|
BINDIR = $(PREFIX)/bin
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(CC) $(CCFLAGS) -o $(TARGET) $(TARGET).c random_r.c $(LDFLAGS)
|
$(CC) $(CCFLAGS) -o $(TARGET) $(TARGET).c $(LDFLAGS)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -D $(TARGET) $(BINDIR)/$(TARGET)
|
install -D $(TARGET) $(BINDIR)/$(TARGET)
|
||||||
|
@ -37,8 +37,8 @@
|
|||||||
* files in the program, then also delete it here.
|
* files in the program, then also delete it here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _PIXIEWPS_H
|
#ifndef PIXIEWPS_H
|
||||||
#define _PIXIEWPS_H
|
#define PIXIEWPS_H
|
||||||
|
|
||||||
#define VERSION "1.1"
|
#define VERSION "1.1"
|
||||||
#define MAX_MODE 4
|
#define MAX_MODE 4
|
||||||
@ -191,4 +191,4 @@ unsigned int wps_pin_valid(unsigned int pin) {
|
|||||||
return wps_pin_checksum(pin / 10) == (pin % 10);
|
return wps_pin_checksum(pin / 10) == (pin % 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _PIXIEWPS_H */
|
#endif /* PIXIEWPS_H */
|
||||||
|
@ -37,8 +37,8 @@
|
|||||||
* files in the program, then also delete it here.
|
* files in the program, then also delete it here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _RANDOM_R_H
|
#ifndef RANDOM_R_H
|
||||||
#define _RANDOM_R_H
|
#define RANDOM_R_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
@ -57,4 +57,4 @@ int srandom_r(unsigned int seed, struct random_data *buf);
|
|||||||
int initstate_r(unsigned int seed, char *arg_state, size_t n, struct random_data *buf);
|
int initstate_r(unsigned int seed, char *arg_state, size_t n, struct random_data *buf);
|
||||||
int setstate_r(char *arg_state, struct random_data *buf);
|
int setstate_r(char *arg_state, struct random_data *buf);
|
||||||
|
|
||||||
#endif /* _RANDOM_R_H */
|
#endif /* RANDOM_R_H */
|
||||||
|
@ -37,8 +37,8 @@
|
|||||||
* files in the program, then also delete it here.
|
* files in the program, then also delete it here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _UTILS_H
|
#ifndef UTILS_H
|
||||||
#define _UTILS_H
|
#define UTILS_H
|
||||||
|
|
||||||
/* Converts an hex string to a byte array */
|
/* Converts an hex string to a byte array */
|
||||||
int hex_string_to_byte_array(char *in, unsigned char *out, int n_len) {
|
int hex_string_to_byte_array(char *in, unsigned char *out, int n_len) {
|
||||||
@ -106,4 +106,4 @@ void byte_array_print(unsigned char *buffer, unsigned int length) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _UTILS_H */
|
#endif /* UTILS_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user