You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
621 B
22 lines
621 B
--- src/texk/dvipdfm-x/pdfencrypt.h~ 2016-01-06 11:13:28.000000000 +0100
|
|
+++ src/texk/dvipdfm-x/pdfencrypt.h 2016-12-31 11:13:43.734942973 +0100
|
|
@@ -38,4 +38,19 @@
|
|
unsigned char **cipher, size_t *cipher_len);
|
|
extern pdf_obj *pdf_encrypt_obj (void);
|
|
|
|
+
|
|
+#ifdef __ANDROID__
|
|
+static char* getpass(const char* prompt) {
|
|
+ static char chars[128];
|
|
+ int len = 0;
|
|
+ while (true) {
|
|
+ char c = fgetc(stdin);
|
|
+ if (c == '\r' || c == '\n' || c == 0) break;
|
|
+ chars[len++] = c;
|
|
+ if (len == sizeof(chars)-1) break;
|
|
+ }
|
|
+ chars[len] = 0;
|
|
+ return chars;
|
|
+}
|
|
+#endif
|
|
#endif /* _PDFENCRYPT_H_ */
|
|
|