小编Dev*_*Fan的帖子

pptpsetup遇到错误:"EAP:未知身份验证类型26; Naking"

操作系统是ubuntu 12.04-lts,当使用pptpsetup设置和启动VPN连接时,它会报告:


    $sudo pptpsetup --create vpn --server xxx.xxx.xxx.xxx --username xxx --password xxx --encrypt --start
    Connect: ppp0  /dev/pts/1
    EAP: unknown authentication type 26; Naking
    EAP: peer reports authentication failure
    Connection terminated.

这是我的/etc/ppp/options.pptp文件:


    # Lock the port
    lock

    # Authentication
    # We don't need the tunnel server to authenticate itself
    noauth

    # We won't do PAP, EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
    # (you may need to remove these refusals if the server is not using MPPE)
    refuse-pap
    refuse-eap …

ubuntu vpn pptp

6
推荐指数
2
解决办法
5977
查看次数

为什么我不能从ReferenceQueue获取PhantomReference以获得可终结的对象?

这是我的代码

public class FinalizableObject {

    @Override
    protected void finalize() throws Throwable {
        System.out.println("finalize() invoked for " + this);
        super.finalize();
    }
}

public class Main {
    private static void test() throws InterruptedException {
        ReferenceQueue<FinalizableObject> rq = new ReferenceQueue<FinalizableObject>();
        FinalizableObject obj = new FinalizableObject();
        PhantomReference<FinalizableObject> pr1 = new PhantomReference<FinalizableObject>(obj, rq);
        obj = null;
        System.gc();
        Reference<? extends Object> ref = rq.remove();
        System.out.print("remove " + ref + " from reference queue\n");
    }
    public static void main(String[] args) {
        try {
            test();
        } catch (InterruptedException …
Run Code Online (Sandbox Code Playgroud)

java reference finalize

5
推荐指数
1
解决办法
441
查看次数

为什么32位ARM平台上的SIGSEGV故障地址为0x00000006?

我在程序中遇到了SEGV_MAPERR崩溃.

pid: 934, tid: 934, name: Binder_1  >>> system_server <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000006
backtrace:
    #00  pc 00000006  <unknown>
    #01  pc 00006925  /system/lib/libcutils.so (set_sched_policy+136)
    #02  pc ffffffff  <unknown>
Run Code Online (Sandbox Code Playgroud)

我可以理解故障地址是0x00000000或0x00000004或其他东西.例如,无效的类虚拟基指针,或无效/野函数指针.

但我无法理解0x00000006作为故障地址.堆栈是非法修改的吗?但是在错误的代码附近,既没有找到返回语句,也没有找到跳转工具.

还有其他潜在的原因吗?非常感谢你!

c c++ assembly

0
推荐指数
1
解决办法
955
查看次数

"abc"的SHA1结果是什么?

使用以下命令:

$ echo abc | sha1sum

我得到了输出:

03cfd743661f07975fa2f1220c5194cbaff48451

但根据SHA标准 http://www.itl.nist.gov/fipspubs/fip180-1.htm我应该得到:

a9993e364706816aba3e25717850c26c9cd0d89d

我怀疑不正确的结果是由w [0]和w [15]的大端或小端引起的.w [0]应该是0x80636261而不是0x61626380.但我仍然无法得到正确的结果.

谁能帮我?

sha1 sha

0
推荐指数
1
解决办法
452
查看次数

标签 统计

assembly ×1

c ×1

c++ ×1

finalize ×1

java ×1

pptp ×1

reference ×1

sha ×1

sha1 ×1

ubuntu ×1

vpn ×1