qpid_proton 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/cproton/cproton.c +84 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af2ef496d6c2d4a177555b6d9e76e906aa5ddd8ee74bba1d14921bce2d5eb193
4
- data.tar.gz: cbff74e654d91adcdb57e050dd130f98d579f097dae07a1dd7614b8e9004b2ee
3
+ metadata.gz: e652c4a8a0fd97b0e75f03125522ad7aa168b1e628d322765aa8ee8b6ceb0c74
4
+ data.tar.gz: ca6cb3c477a398a9b393cb1f52eed6fdb3dea9a1267417810248454a3c1e20a0
5
5
  SHA512:
6
- metadata.gz: 859b96a74c387b8b49078d6a74a9a2ea3ad4685fca64c21e30bd1a1364855656dd010703f3f77238a88f50a39bcaea74c314c7cbd0d7e0394f9d004c8d336b31
7
- data.tar.gz: 6daf1cb9b0c2578d8c0b8e4cc59445e89a72cd404aa24739accf740aca3980394dbe0d231806bf7759f5da7cf580f58b5d0ba9e37612eebbd06b7b0a1e411317
6
+ metadata.gz: 8cb336b5f81981392a8bbbd33be7facc054dc97a0426766699f818b3e2d5aca1570a727275e0ee9d9c13432d0643f1c8c0951886c92d835ca3691d64acaf8d45
7
+ data.tar.gz: c7f4af183ac71e9d940ff499d6de0eed1d4e43a2c4524b6f2544eee97d4e0c022a7c010accada93ac58aeed2b62e945ac8a08f636536cb9b6b4d4331b21766d9
@@ -7769,6 +7769,38 @@ fail:
7769
7769
  }
7770
7770
 
7771
7771
 
7772
+ SWIGINTERN VALUE
7773
+ _wrap_pn_connection_set_authorization(int argc, VALUE *argv, VALUE self) {
7774
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
7775
+ char *arg2 = (char *) 0 ;
7776
+ void *argp1 = 0 ;
7777
+ int res1 = 0 ;
7778
+ int res2 ;
7779
+ char *buf2 = 0 ;
7780
+ int alloc2 = 0 ;
7781
+
7782
+ if ((argc < 2) || (argc > 2)) {
7783
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
7784
+ }
7785
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
7786
+ if (!SWIG_IsOK(res1)) {
7787
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_authorization", 1, argv[0] ));
7788
+ }
7789
+ arg1 = (pn_connection_t *)(argp1);
7790
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
7791
+ if (!SWIG_IsOK(res2)) {
7792
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_authorization", 2, argv[1] ));
7793
+ }
7794
+ arg2 = (char *)(buf2);
7795
+ pn_connection_set_authorization(arg1,(char const *)arg2);
7796
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7797
+ return Qnil;
7798
+ fail:
7799
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7800
+ return Qnil;
7801
+ }
7802
+
7803
+
7772
7804
  SWIGINTERN VALUE
7773
7805
  _wrap_pn_connection_get_user(int argc, VALUE *argv, VALUE self) {
7774
7806
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
@@ -7793,6 +7825,30 @@ fail:
7793
7825
  }
7794
7826
 
7795
7827
 
7828
+ SWIGINTERN VALUE
7829
+ _wrap_pn_connection_get_authorization(int argc, VALUE *argv, VALUE self) {
7830
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
7831
+ void *argp1 = 0 ;
7832
+ int res1 = 0 ;
7833
+ char *result = 0 ;
7834
+ VALUE vresult = Qnil;
7835
+
7836
+ if ((argc < 1) || (argc > 1)) {
7837
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7838
+ }
7839
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
7840
+ if (!SWIG_IsOK(res1)) {
7841
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_authorization", 1, argv[0] ));
7842
+ }
7843
+ arg1 = (pn_connection_t *)(argp1);
7844
+ result = (char *)pn_connection_get_authorization(arg1);
7845
+ vresult = SWIG_FromCharPtr((const char *)result);
7846
+ return vresult;
7847
+ fail:
7848
+ return Qnil;
7849
+ }
7850
+
7851
+
7796
7852
  SWIGINTERN VALUE
7797
7853
  _wrap_pn_connection_get_hostname(int argc, VALUE *argv, VALUE self) {
7798
7854
  pn_connection_t *arg1 = (pn_connection_t *) 0 ;
@@ -15081,6 +15137,30 @@ fail:
15081
15137
  }
15082
15138
 
15083
15139
 
15140
+ SWIGINTERN VALUE
15141
+ _wrap_pn_sasl_get_authorization(int argc, VALUE *argv, VALUE self) {
15142
+ pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
15143
+ void *argp1 = 0 ;
15144
+ int res1 = 0 ;
15145
+ char *result = 0 ;
15146
+ VALUE vresult = Qnil;
15147
+
15148
+ if ((argc < 1) || (argc > 1)) {
15149
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
15150
+ }
15151
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 );
15152
+ if (!SWIG_IsOK(res1)) {
15153
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_get_authorization", 1, argv[0] ));
15154
+ }
15155
+ arg1 = (pn_sasl_t *)(argp1);
15156
+ result = (char *)pn_sasl_get_authorization(arg1);
15157
+ vresult = SWIG_FromCharPtr((const char *)result);
15158
+ return vresult;
15159
+ fail:
15160
+ return Qnil;
15161
+ }
15162
+
15163
+
15084
15164
  SWIGINTERN VALUE
15085
15165
  _wrap_pn_sasl_get_mech(int argc, VALUE *argv, VALUE self) {
15086
15166
  pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
@@ -19750,7 +19830,7 @@ SWIGEXPORT void Init_cproton(void) {
19750
19830
  rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1);
19751
19831
  rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
19752
19832
  rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
19753
- rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(32)));
19833
+ rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(33)));
19754
19834
  rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
19755
19835
  rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
19756
19836
  rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
@@ -19917,7 +19997,9 @@ SWIGEXPORT void Init_cproton(void) {
19917
19997
  rb_define_module_function(mCproton, "pn_connection_set_container", _wrap_pn_connection_set_container, -1);
19918
19998
  rb_define_module_function(mCproton, "pn_connection_set_user", _wrap_pn_connection_set_user, -1);
19919
19999
  rb_define_module_function(mCproton, "pn_connection_set_password", _wrap_pn_connection_set_password, -1);
20000
+ rb_define_module_function(mCproton, "pn_connection_set_authorization", _wrap_pn_connection_set_authorization, -1);
19920
20001
  rb_define_module_function(mCproton, "pn_connection_get_user", _wrap_pn_connection_get_user, -1);
20002
+ rb_define_module_function(mCproton, "pn_connection_get_authorization", _wrap_pn_connection_get_authorization, -1);
19921
20003
  rb_define_module_function(mCproton, "pn_connection_get_hostname", _wrap_pn_connection_get_hostname, -1);
19922
20004
  rb_define_module_function(mCproton, "pn_connection_set_hostname", _wrap_pn_connection_set_hostname, -1);
19923
20005
  rb_define_module_function(mCproton, "pn_connection_remote_container", _wrap_pn_connection_remote_container, -1);
@@ -20287,6 +20369,7 @@ SWIGEXPORT void Init_cproton(void) {
20287
20369
  rb_define_module_function(mCproton, "pn_sasl_done", _wrap_pn_sasl_done, -1);
20288
20370
  rb_define_module_function(mCproton, "pn_sasl_outcome", _wrap_pn_sasl_outcome, -1);
20289
20371
  rb_define_module_function(mCproton, "pn_sasl_get_user", _wrap_pn_sasl_get_user, -1);
20372
+ rb_define_module_function(mCproton, "pn_sasl_get_authorization", _wrap_pn_sasl_get_authorization, -1);
20290
20373
  rb_define_module_function(mCproton, "pn_sasl_get_mech", _wrap_pn_sasl_get_mech, -1);
20291
20374
  rb_define_module_function(mCproton, "pn_sasl_allowed_mechs", _wrap_pn_sasl_allowed_mechs, -1);
20292
20375
  rb_define_module_function(mCproton, "pn_sasl_set_allow_insecure_mechs", _wrap_pn_sasl_set_allow_insecure_mechs, -1);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qpid_proton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darryl L. Pierce
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-02 00:00:00.000000000 Z
12
+ date: 2021-02-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: |
15
15
  Proton is a high performance, lightweight messaging library. It can be used in