{
  "synLogic": "int $ret \u003d $api($1, $2, $3);",
  "help": "The ns_tibco_set_ssl_issuer function is used to set the SSL issuer certificate for a TIBCO process. This function is typically used in situations where a TIBCO process needs to communicate with other processes over a secure SSL connection.",
  "notes": "",
  "returns": "An integer value representing the status of the function execution. A value of 0 indicates success, while a non-zero value indicates an error.",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e \u003cth\u003e Description \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e JPID \u003c/td\u003e \u003ctd\u003e An integer representing the TIBCO process ID \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Certificate File \u003c/td\u003e \u003ctd\u003e These are small data files that digitally bind a cryptographic key to an organization details \u003c/td\u003e \u003c/tr\u003e  \u003ctr\u003e \u003ctd\u003e Error Message \u003c/td\u003e \u003ctd\u003e A pointer to a character array where any error message will be stored. \u003c/td\u003e \u003c/tr\u003e  \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_tibco_set_ssl_issuer",
  "syntax": "int ns_tibco_set_ssl_issuer(int jpid, char *issuerCertFilePath, char *error_msg)",
  "javaSyntax": "",
  "cEx": "flow()\n{\n   int jpid;	//JMS Pool Id\n  int jcid;	//JMS Connection Id\n  char header[1024];	//message to be recieved\n  int header_len = 1024;	//message length\n  char error_msg[1024 + 1];	// Error string. Must be 1024 size\n  int ret;	// Error code\n  int msg_len = 1024;\n  char msg[1024 + 1];\n\n  if((jpid = ns_tibco_init_consumer(\"ssl://127.0.0.1\", 7222, 1, \"topic\", \"user_id\", ns_decrypt(\"NlEyRDZGLUQg\"), 1,error_msg)) < 0)\n  {\n    fprintf(stderr, \"Error in initializing Tibco consumer. Error code = %d, Error Msg = %s\", jpid, error_msg);\n    return;\n  }\n\n  if((jcid = ns_tibco_set_ssl_issuer(jpid, \"/home/cavisson/controller/issuer.txt\", error_msg)) < 0)\n  {\n    fprintf(stderr, \"Error in setting tibco ssl issuer. Error code = %d, Error Msg = %s\", ret, error_msg);\n    return;\n  }\n}",
  "javaEx": "flow()\n{\n   int jpid;	//JMS Pool Id\n  int jcid;	//JMS Connection Id\n  char header[1024];	//message to be recieved\n  int header_len = 1024;	//message length\n  char error_msg[1024 + 1];	// Error string. Must be 1024 size\n  int ret;	// Error code\n  int msg_len = 1024;\n  char msg[1024 + 1];\n\n  if((jpid = ns_tibco_init_consumer(\"ssl://127.0.0.1\", 7222, 1, \"topic\", \"user_id\", ns_decrypt(\"NlEyRDZGLUQg\"), 1,error_msg)) < 0)\n  {\n    fprintf(stderr, \"Error in initializing Tibco consumer. Error code = %d, Error Msg = %s\", jpid, error_msg);\n    return;\n  }\n\n  if((jcid = ns_tibco_set_ssl_issuer(jpid, \"/home/cavisson/controller/issuer.txt\", error_msg)) < 0)\n  {\n    fprintf(stderr, \"Error in setting tibco ssl issuer. Error code = %d, Error Msg = %s\", ret, error_msg);\n    return;\n  }\n}",
  "insertStrC": "ns_tibco_set_ssl_issuer(int jpid, char *issuerCertFilePath, char *error_msg);",
  "insertStrJava": "",
  "description": "The ns_tibco_set_ssl_issuer function is used to set the SSL issuer certificate for a TIBCO process. This function is typically used in situations where a TIBCO process needs to communicate with other processes over a secure SSL connection.",
  "component":[
    {
      "id": "$1",
      "type": "TextField",
      "label": "JMS Pool Id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter pool id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Number",
        "required": true,
			"max": 2147483647,
            "min": 0
		}
    },
    {
      "id": "$2",
      "type": "FILE_PATH",
      "label": "Certificate File",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter tibco ssl issuer certificate file path",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
    {
      "id": "$3",
      "type": "TEXT_VAR",
      "label": "Error Message",
      "labelVarCheckbox": "If error message is a program variable.",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter error message",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
		}
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore.",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
		"pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
        "required": false,
        "method": "isValidVar(arg)"
      }
    }
  ]
}
