From c0b7206652b2852bc574694e7ba07ba1c2acdc00 Mon Sep 17 00:00:00 2001 From: hongbotian Date: Mon, 30 Nov 2015 03:10:21 -0500 Subject: delete app Change-Id: Id4c572809969ebe89e946e88063eaed262cff3f2 Signed-off-by: hongbotian --- .../srclib/apr/passwd/.libs/apr_getpass.o | Bin 5760 -> 0 bytes rubbos/app/httpd-2.0.64/srclib/apr/passwd/Makefile | 13 -- .../app/httpd-2.0.64/srclib/apr/passwd/Makefile.in | 13 -- .../httpd-2.0.64/srclib/apr/passwd/apr_getpass.c | 231 --------------------- .../httpd-2.0.64/srclib/apr/passwd/apr_getpass.lo | 12 -- .../httpd-2.0.64/srclib/apr/passwd/apr_getpass.o | Bin 5720 -> 0 bytes 6 files changed, 269 deletions(-) delete mode 100644 rubbos/app/httpd-2.0.64/srclib/apr/passwd/.libs/apr_getpass.o delete mode 100644 rubbos/app/httpd-2.0.64/srclib/apr/passwd/Makefile delete mode 100644 rubbos/app/httpd-2.0.64/srclib/apr/passwd/Makefile.in delete mode 100644 rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.c delete mode 100644 rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.lo delete mode 100644 rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.o (limited to 'rubbos/app/httpd-2.0.64/srclib/apr/passwd') diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/.libs/apr_getpass.o b/rubbos/app/httpd-2.0.64/srclib/apr/passwd/.libs/apr_getpass.o deleted file mode 100644 index 08254349..00000000 Binary files a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/.libs/apr_getpass.o and /dev/null differ diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/Makefile b/rubbos/app/httpd-2.0.64/srclib/apr/passwd/Makefile deleted file mode 100644 index 8b7361b2..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -srcdir = . - - -TARGETS = apr_getpass.lo - -# bring in rules.mk for standard functionality -include /bottlenecks/rubbos/app/httpd-2.0.64/srclib/apr/build/apr_rules.mk - -INCDIR=../include -DEFOSDIR=$(INCDIR)/arch/unix -INCLUDES=-I$(INCDIR) -I$(DEFOSDIR) - -# DO NOT REMOVE diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/Makefile.in b/rubbos/app/httpd-2.0.64/srclib/apr/passwd/Makefile.in deleted file mode 100644 index 162d415e..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/Makefile.in +++ /dev/null @@ -1,13 +0,0 @@ -srcdir = @srcdir@ -VPATH = @srcdir@ - -TARGETS = apr_getpass.lo - -# bring in rules.mk for standard functionality -@INCLUDE_RULES@ - -INCDIR=../include -DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@ -INCLUDES=-I$(INCDIR) -I$(DEFOSDIR) - -# DO NOT REMOVE diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.c b/rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.c deleted file mode 100644 index 3bc5cd93..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.c +++ /dev/null @@ -1,231 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* apr_password_get.c: abstraction to provide for obtaining a password from the - * command line in whatever way the OS supports. In the best case, it's a - * wrapper for the system library's getpass() routine; otherwise, we - * use one we define ourselves. - */ -#include "apr_private.h" -#include "apr_strings.h" -#include "apr_lib.h" -#include "apr_errno.h" -#if APR_HAVE_SYS_TYPES_H -#include -#endif -#if APR_HAVE_ERRNO_H -#include -#endif - -#if APR_HAVE_UNISTD_H -#include -#endif -#if APR_HAVE_CONIO_H -#pragma warning(disable: 4032) -#include -#pragma warning(default: 4032) -#endif -#if APR_HAVE_STDLIB_H -#include -#endif -#if APR_HAVE_STRING_H -#include -#endif -#if APR_HAVE_STRINGS_H -#include -#endif - -#if defined(HAVE_TERMIOS_H) && !defined(HAVE_GETPASS) -#include -#endif - -#if !APR_CHARSET_EBCDIC -#define LF 10 -#define CR 13 -#else /* APR_CHARSET_EBCDIC */ -#define LF '\n' -#define CR '\r' -#endif /* APR_CHARSET_EBCDIC */ - -#define MAX_STRING_LEN 256 - -#define ERR_OVERFLOW 5 - -#ifndef HAVE_GETPASS - -/* MPE, Win32, NetWare and BeOS all lack a native getpass() */ - -#if !defined(HAVE_TERMIOS_H) && !defined(WIN32) && !defined(NETWARE) -/* - * MPE lacks getpass() and a way to suppress stdin echo. So for now, just - * issue the prompt and read the results with echo. (Ugh). - */ - -static char *getpass(const char *prompt) -{ - static char password[MAX_STRING_LEN]; - - fputs(prompt, stderr); - fgets((char *) &password, sizeof(password), stdin); - - return (char *) &password; -} - -#elif defined (HAVE_TERMIOS_H) -#include - -static char *getpass(const char *prompt) -{ - struct termios attr; - static char password[MAX_STRING_LEN]; - int n=0; - fputs(prompt, stderr); - fflush(stderr); - - if (tcgetattr(STDIN_FILENO, &attr) != 0) - return NULL; - attr.c_lflag &= ~(ECHO); - - if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &attr) != 0) - return NULL; - while ((password[n] = getchar()) != '\n') { - if (n < sizeof(password) - 1 && password[n] >= ' ' && password[n] <= '~') { - n++; - } else { - fprintf(stderr,"\n"); - fputs(prompt, stderr); - fflush(stderr); - n = 0; - } - } - - password[n] = '\0'; - printf("\n"); - if (n > (MAX_STRING_LEN - 1)) { - password[MAX_STRING_LEN - 1] = '\0'; - } - - attr.c_lflag |= ECHO; - tcsetattr(STDIN_FILENO, TCSANOW, &attr); - return (char*) &password; -} - -#else - -/* - * Windows lacks getpass(). So we'll re-implement it here. - */ - -static char *getpass(const char *prompt) -{ -/* WCE lacks console. So the getpass is unsuported - * The only way is to use the GUI so the getpass should be implemented - * on per-application basis. - */ -#ifdef _WIN32_WCE - return NULL; -#else - static char password[128]; - int n = 0; - int ch; - - fputs(prompt, stderr); - - while ((ch = _getch()) != '\r') { - if (ch == EOF) /* EOF */ { - fputs("[EOF]\n", stderr); - return NULL; - } - else if (ch == 0 || ch == 0xE0) { - /* FN Keys (0 or E0) are a sentinal for a FN code */ - ch = (ch << 4) | _getch(); - /* Catch {DELETE}, {<--}, Num{DEL} and Num{<--} */ - if ((ch == 0xE53 || ch == 0xE4B || ch == 0x053 || ch == 0x04b) && n) { - password[--n] = '\0'; - fputs("\b \b", stderr); - } - else { - fputc('\a', stderr); - } - } - else if ((ch == '\b' || ch == 127) && n) /* BS/DEL */ { - password[--n] = '\0'; - fputs("\b \b", stderr); - } - else if (ch == 3) /* CTRL+C */ { - /* _getch() bypasses Ctrl+C but not Ctrl+Break detection! */ - fputs("^C\n", stderr); - exit(-1); - } - else if (ch == 26) /* CTRL+Z */ { - fputs("^Z\n", stderr); - return NULL; - } - else if (ch == 27) /* ESC */ { - fputc('\n', stderr); - fputs(prompt, stderr); - n = 0; - } - else if ((n < sizeof(password) - 1) && !apr_iscntrl(ch)) { - password[n++] = ch; - fputc('*', stderr); - } - else { - fputc('\a', stderr); - } - } - - fputc('\n', stderr); - password[n] = '\0'; - return password; -#endif -} - -#endif /* no getchar or _getch */ - -#endif /* no getpass */ - -/* - * Use the OS getpass() routine (or our own) to obtain a password from - * the input stream. - * - * Exit values: - * 0: Success - * 5: Partial success; entered text truncated to the size of the - * destination buffer - * - * Restrictions: Truncation also occurs according to the host system's - * getpass() semantics, or at position 255 if our own version is used, - * but the caller is *not* made aware of it unless their own buffer is - * smaller than our own. - */ - -APR_DECLARE(apr_status_t) apr_password_get(const char *prompt, char *pwbuf, apr_size_t *bufsiz) -{ -#ifdef HAVE_GETPASSPHRASE - char *pw_got = getpassphrase(prompt); -#else - char *pw_got = getpass(prompt); -#endif - if (!pw_got) - return APR_EINVAL; - apr_cpystrn(pwbuf, pw_got, *bufsiz); - memset(pw_got, 0, strlen(pw_got)); - if (strlen(pw_got) >= *bufsiz) { - return APR_ENAMETOOLONG; - } - return APR_SUCCESS; -} diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.lo b/rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.lo deleted file mode 100644 index 9bf0f5e0..00000000 --- a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.lo +++ /dev/null @@ -1,12 +0,0 @@ -# apr_getpass.lo - a libtool object file -# Generated by ltmain.sh - GNU libtool 1.5.26 (1.1220.2.493 2008/02/01 16:58:18) -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# Name of the PIC object. -pic_object='.libs/apr_getpass.o' - -# Name of the non-PIC object. -non_pic_object='apr_getpass.o' - diff --git a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.o b/rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.o deleted file mode 100644 index 534e01fe..00000000 Binary files a/rubbos/app/httpd-2.0.64/srclib/apr/passwd/apr_getpass.o and /dev/null differ -- cgit 1.2.3-korg