70 METHOD_CTX *top,*tmp1,*tmp2;
72 top=METH_new(x509_lookup());
73 if (top == NULL)
goto err;
75 tmp1=METH_new(x509_by_file());
76 if (top == NULL)
goto err;
77 METH_arg(tmp1,METH_TYPE_FILE,
"cafile1");
78 METH_arg(tmp1,METH_TYPE_FILE,
"cafile2");
79 METH_push(top,METH_X509_CA_BY_SUBJECT,tmp1);
81 tmp2=METH_new(x509_by_dir());
82 METH_arg(tmp2,METH_TYPE_DIR,
"/home/eay/.CAcerts");
83 METH_arg(tmp2,METH_TYPE_DIR,
"/home/eay/SSLeay/certs");
84 METH_arg(tmp2,METH_TYPE_DIR,
"/usr/local/ssl/certs");
85 METH_push(top,METH_X509_CA_BY_SUBJECT,tmp2);
97 METH_control(tmp1,METH_CONTROL_DUMP,stdout);
98 METH_control(tmp2,METH_CONTROL_DUMP,stdout);