⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 get_pauth.c

📁 sock5代理服务器源代码
💻 C
字号:
/*                                                                           *//*  * Copyright (c) 1989, 1990 by the University of Washington               *//*  *                                                                        *//*  * For copying and distribution information, please see the file          *//*  * <copyright.h>.                                                         */#include "pmachine.h"#include "pwd.h"#include "pcompat.h"#include "pauthent.h"PAUTHget_pauth(type)    int		type;    {	static PAUTH_ST   no_auth_st;	static PAUTH		  no_auth = NULL;	struct passwd *whoiampw;	if(no_auth == NULL) {	    no_auth = &no_auth_st;	    strcpy(no_auth->auth_type,"UNAUTHENTICATED");	    /* find out who we are */	    DISABLE_PFS(whoiampw = getpwuid(getuid()));	    if (whoiampw == 0) strcpy(no_auth->authenticator,"nobody");	    else strcpy(no_auth->authenticator, whoiampw->pw_name);	}	return(no_auth);    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -