diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-10-15 07:04:59 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-10-15 07:04:59 +0000 |
commit | 4b289329774686a3e261fac70fbd902942cb9b1f (patch) | |
tree | 2afebdecbce79f65ab386003be09649736665f7a /pjsip/include/pjsip/print_util.h | |
parent | cee3cd46bbeec0bb7e76a5480e7cad9ee2f8cda5 (diff) |
Continuing ticket #396: tested digest AKAv1, implemented AKAv2, and some works in the authentication framework to support it
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1500 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip/print_util.h')
-rw-r--r-- | pjsip/include/pjsip/print_util.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pjsip/include/pjsip/print_util.h b/pjsip/include/pjsip/print_util.h index d7f30a08..6c9afa34 100644 --- a/pjsip/include/pjsip/print_util.h +++ b/pjsip/include/pjsip/print_util.h @@ -50,6 +50,17 @@ } \ } while (0) +#define copy_advance_pair_quote(buf,str1,len1,str2,quotebegin,quoteend) \ + do { \ + printed = len1+str2.slen+2; \ + if (printed >= (endbuf-buf)) return -1; \ + pj_memcpy(buf,str1,len1); \ + *(buf+len1)=quotebegin; \ + pj_memcpy(buf+len1+1, str2.ptr, str2.slen); \ + *(buf+printed-1) = quoteend; \ + buf += printed; \ + } while (0) + #define copy_advance_pair_escape(buf,str1,len1,str2,unres) \ do { \ if (str2.slen) { \ @@ -85,7 +96,6 @@ #define copy_advance copy_advance_check #define copy_advance_pair copy_advance_pair_check -#define copy_advance_pair_quote copy_advance_pair_quote_check #define copy_advance_pair_quote_cond(buf,str1,len1,str2,quotebegin,quoteend) \ do { \ |