]> arthur.barton.de Git - netatalk.git/blobdiff - etc/uams/uams_pgp.c
Several fixes
[netatalk.git] / etc / uams / uams_pgp.c
index e3892573f22ddf7e43cb8c1025dd159755f1100c..9b9c1d801dd57d53c543d8cdc1e11fb555f18f05 100644 (file)
@@ -12,8 +12,8 @@
 
 #ifdef UAM_PGP
 
-/* for crypt() */
-#define _XOPEN_SOURCE
+#include <atalk/standards.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -53,7 +53,7 @@
 /* the secret key */
 static struct passwd *pgppwd;
 static CAST_KEY castkey;
-static u_int8_t randbuf[16];
+static uint8_t randbuf[16];
 
 /* pgp passwd */
 static int pgp_login(void *obj, struct passwd **uam_pwd,
@@ -109,7 +109,7 @@ static int pgp_logincont(void *obj, struct passwd **uam_pwd,
 {
        unsigned char iv[] = "RJscorat";
     BIGNUM *bn1, *bn2, *bn3;
-    u_int16_t sessid;
+    uint16_t sessid;
     char *p;
 
     *rbuflen = 0;