Changeset 38396 for titan/titan/ca.h


Ignore:
Timestamp:
08/28/16 11:27:56 (7 years ago)
Author:
gost
Message:

[titan] test... save pin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/ca.h

    r38256 r38396  
    419419int cammiAPDU(struct dvbdev* dvbnode, int sessionnr, unsigned char *tag, void *data, int len)
    420420{
    421         char* tmpstr = NULL, *tmpstr1 = NULL;
     421        char* tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL;
    422422        struct casession* casession = NULL;
    423423        struct menulist* mlist = NULL, *mbox = NULL;
     
    484484                                        ostrcat(tmpstr, getconfig("ca0_pin", NULL), 0, 0);
    485485                                  }
    486                                 }
     486                                  tmpstr2 = ostrcat(tmpstr2, "ca0_pin", 1, 0);
     487                                }
     488                                if(ostrstr(str, "Bitte versuchen Sie es erneut") != NULL)
     489                                        tmpstr2 = ostrcat(tmpstr2, "ca0_pin", 1, 0);
    487490                                if(ca0autopin == 0)     
    488                                         tmpstr = textinput(str, tmpstr1);
     491                                        tmpstr = textinputsave(str, tmpstr1, tmpstr2);
    489492                                if(tmpstr == NULL)
    490493                                        cammicancelenq(dvbnode, sessionnr);
     
    496499                                free(tmpstr); tmpstr = NULL;
    497500                                free(tmpstr1); tmpstr1 = NULL;
     501                                free(tmpstr2); tmpstr2 = NULL;
    498502
    499503                        }
Note: See TracChangeset for help on using the changeset viewer.