Loading

Paste #pgs7ufaus

  1. @@ -775,10 +762,10 @@ G_GNUC_END_IGNORE_DEPRECATIONS
  2.   * g_tls_connection_get_rehandshake_mode:
  3.   * @conn: a #GTlsConnection
  4.   *
  5. - * Gets @conn rehandshaking mode. See
  6. + * Returns %G_TLS_REHANDSHAKE_SAFELY. See
  7.   * g_tls_connection_set_rehandshake_mode() for details.
  8.   *
  9. - * Returns: @conn's rehandshaking mode
  10. + * Returns: %G_TLS_REHANDSHAKE_SAFELY
  11.  *
  12.  * Since: 2.28
  13.  *
  14. @@ -788,16 +775,11 @@ G_GNUC_END_IGNORE_DEPRECATIONS
  15.  */
  16. G_GNUC_BEGIN_IGNORE_DEPRECATIONS
  17. GTlsRehandshakeMode
  18. -g_tls_connection_get_rehandshake_mode (GTlsConnection       *conn)
  19. +g_tls_connection_get_rehandshake_mode (GTlsConnection *conn)
  20. {
  21. -  GTlsRehandshakeMode mode;
  22. +  g_return_val_if_fail (G_IS_TLS_CONNECTION (conn), G_TLS_REHANDSHAKE_SAFELY);
  23.  
  24. -  g_return_val_if_fail (G_IS_TLS_CONNECTION (conn), G_TLS_REHANDSHAKE_NEVER);
  25. -
  26. -  g_object_get (G_OBJECT (conn),
  27. -               "rehandshake-mode", &mode,
  28. -               NULL);
  29. -  return mode;
  30. +  return G_TLS_REHANDSHAKE_SAFELY;
  31. }
  32. G_GNUC_END_IGNORE_DEPRECATIONS