• Home
  • Raw
  • Download

Lines Matching refs:cdir

57 void sslGenCA(char *cdir);
483 char *cdir, *home, *tmp; in get_Cert_dir() local
490 cdir = cdir_in; in get_Cert_dir()
492 cdir = ssl_certs_dir; in get_Cert_dir()
495 if (cdir == NULL) { in get_Cert_dir()
500 cdir = (char *) malloc(strlen(home) + strlen("/.vnc/certs/CA") + 1); in get_Cert_dir()
502 sprintf(cdir, "%s%s", home, cases1[i]); in get_Cert_dir()
503 if (stat(cdir, &sbuf) != 0) { in get_Cert_dir()
504 rfbLog("creating dir: %s\n", cdir); in get_Cert_dir()
505 if (mkdir(cdir, 0755) != 0) { in get_Cert_dir()
506 rfbLog("could not create directory %s\n", cdir); in get_Cert_dir()
511 rfbLog("not a directory: %s\n", cdir); in get_Cert_dir()
515 sprintf(cdir, "%s%s", home, cases1[1]); in get_Cert_dir()
518 tmp = (char *) malloc(strlen(cdir) + strlen("/tmp") + 1); in get_Cert_dir()
521 sprintf(tmp, "%s%s", cdir, cases2[i]); in get_Cert_dir()
540 sprintf(tmp, "%s/tmp", cdir); in get_Cert_dir()
542 return cdir; in get_Cert_dir()
545 static char *getsslscript(char *cdir, char *name, char *script) { in getsslscript() argument
558 cdir_use = get_Cert_dir(cdir, &tmp); in getsslscript()
594 void sslGenCA(char *cdir) { in sslGenCA() argument
595 char *cmd, *scr = getsslscript(cdir, "genca", genCA); in sslGenCA()
649 char *scr, *cert = NULL, *tca, *cdir = NULL; in sslEncKey() local
677 cdir = get_Cert_dir(NULL, &tca); in sslEncKey()
678 if (! cdir || ! tca) { in sslEncKey()
698 tca = (char *) malloc(strlen(cdir)+strlen("/CA/cacert.pem")+1); in sslEncKey()
699 sprintf(tca, "%s/CA/cacert.pem", cdir); in sslEncKey()
709 if (strchr(cdir, '\'')) { in sslEncKey()
710 fprintf(stderr, "bad certdir char: %s\n", cdir); in sslEncKey()
714 tca = (char *) malloc(2*strlen(cdir)+strlen(program_name)+1000); in sslEncKey()
717 "\\.(crt|pem|key|req)$' | grep -v CA/newcerts", cdir); in sslEncKey()
725 strcat(tca, cdir); in sslEncKey()
750 set_env("BASE_DIR", cdir); in sslEncKey()
770 tca = (char *) malloc(strlen(cdir) + strlen(path) + 100); in sslEncKey()
774 sprintf(tca, "%s/%s", cdir, path); in sslEncKey()
776 sprintf(tca, "%s/%s.crt", cdir, path); in sslEncKey()
778 sprintf(tca, "%s/%s.pem", cdir, path); in sslEncKey()
780 sprintf(tca, "%s/%s.req", cdir, path); in sslEncKey()
782 sprintf(tca, "%s/%s.key", cdir, path); in sslEncKey()
784 sprintf(tca, "%s/clients/%s", cdir, path); in sslEncKey()
786 sprintf(tca, "%s/clients/%s.crt", cdir, path); in sslEncKey()
788 sprintf(tca, "%s/clients/%s.pem", cdir, path); in sslEncKey()
790 sprintf(tca, "%s/clients/%s.req", cdir, path); in sslEncKey()
792 sprintf(tca, "%s/clients/%s.key", cdir, path); in sslEncKey()
794 sprintf(tca, "%s/server-%s", cdir, path); in sslEncKey()
796 sprintf(tca, "%s/server-%s.crt", cdir, path); in sslEncKey()
798 sprintf(tca, "%s/server-%s.pem", cdir, path); in sslEncKey()
800 sprintf(tca, "%s/server-%s.req", cdir, path); in sslEncKey()
802 sprintf(tca, "%s/server-%s.key", cdir, path); in sslEncKey()