Lines 48-70
Link Here
|
48 |
* encryption, make sure you've got libcrypt.a around. |
48 |
* encryption, make sure you've got libcrypt.a around. |
49 |
*/ |
49 |
*/ |
50 |
|
50 |
|
51 |
__warn_references(des_setkey, |
|
|
52 |
"WARNING! des_setkey(3) not present in the system!"); |
53 |
|
54 |
/* ARGSUSED */ |
51 |
/* ARGSUSED */ |
55 |
int |
52 |
int |
56 |
des_setkey(const char *key __unused) |
53 |
__freebsd11_des_setkey(const char *key __unused) |
57 |
{ |
54 |
{ |
58 |
fprintf(stderr, "WARNING! des_setkey(3) not present in the system!\n"); |
55 |
fprintf(stderr, "WARNING! des_setkey(3) not present in the system!\n"); |
59 |
return (0); |
56 |
return (0); |
60 |
} |
57 |
} |
61 |
|
58 |
|
62 |
__warn_references(des_cipher, |
|
|
63 |
"WARNING! des_cipher(3) not present in the system!"); |
64 |
|
65 |
/* ARGSUSED */ |
59 |
/* ARGSUSED */ |
66 |
int |
60 |
int |
67 |
des_cipher(const char *in, char *out, long salt __unused, int num_iter __unused) |
61 |
__freebsd11_des_cipher(const char *in, char *out, long salt __unused, |
|
|
62 |
int num_iter __unused) |
68 |
{ |
63 |
{ |
69 |
fprintf(stderr, "WARNING! des_cipher(3) not present in the system!\n"); |
64 |
fprintf(stderr, "WARNING! des_cipher(3) not present in the system!\n"); |
70 |
bcopy(in, out, 8); |
65 |
bcopy(in, out, 8); |
Lines 71-94
Link Here
|
71 |
return (0); |
66 |
return (0); |
72 |
} |
67 |
} |
73 |
|
68 |
|
74 |
__warn_references(setkey, |
|
|
75 |
"WARNING! setkey(3) not present in the system!"); |
76 |
|
77 |
/* ARGSUSED */ |
69 |
/* ARGSUSED */ |
78 |
int |
70 |
int |
79 |
setkey(const char *key __unused) |
71 |
__freebsd11_setkey(const char *key __unused) |
80 |
{ |
72 |
{ |
81 |
fprintf(stderr, "WARNING! setkey(3) not present in the system!\n"); |
73 |
fprintf(stderr, "WARNING! setkey(3) not present in the system!\n"); |
82 |
return (0); |
74 |
return (0); |
83 |
} |
75 |
} |
84 |
|
76 |
|
85 |
__warn_references(encrypt, |
|
|
86 |
"WARNING! encrypt(3) not present in the system!"); |
87 |
|
88 |
/* ARGSUSED */ |
77 |
/* ARGSUSED */ |
89 |
int |
78 |
int |
90 |
encrypt(char *block __unused, int flag __unused) |
79 |
__freebsd11_encrypt(char *block __unused, int flag __unused) |
91 |
{ |
80 |
{ |
92 |
fprintf(stderr, "WARNING! encrypt(3) not present in the system!\n"); |
81 |
fprintf(stderr, "WARNING! encrypt(3) not present in the system!\n"); |
93 |
return (0); |
82 |
return (0); |
94 |
} |
83 |
} |
|
|
84 |
|
85 |
__sym_compat(des_setkey, __freebsd11_des_setkey, FBSD_1.0); |
86 |
__sym_compat(des_cipher, __freebsd11_des_cipher, FBSD_1.0); |
87 |
__sym_compat(setkey, __freebsd11_setkey, FBSD_1.0); |
88 |
__sym_compat(encrypt, __freebsd11_encrypt, FBSD_1.0); |